For Single Person Mail Box:
echo "Hi, This is Test Mail" | mailx -s "Test Mail For SMTP" someone@company.com
For group of Mails (#Group-Member-Mails)
echo "Hi, This is Test Mail" | mailx -s "Test Mail For SMTP" #somegroup@company.com
Instead of mailx, command mail also will work for initiating mails
mail -S smtp=<relay server name> -s "Space Alert For $(hostname): Disk space $usep%" someone@company.com
Note: Relay Sever Name can be derived under the System Profile : IEX: SMTP Host
echo "Hi, This is Test Mail" | mailx -s "Test Mail For SMTP" someone@company.com
For group of Mails (#Group-Member-Mails)
echo "Hi, This is Test Mail" | mailx -s "Test Mail For SMTP" #somegroup@company.com
Instead of mailx, command mail also will work for initiating mails
mail -S smtp=<relay server name> -s "Space Alert For $(hostname): Disk space $usep%" someone@company.com
Note: Relay Sever Name can be derived under the System Profile : IEX: SMTP Host
No comments:
Post a Comment