Jun 17, 2019

Triggering Mail from Unix Box

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




No comments:

Post a Comment

Useful Workflow Commands

  WFLOAD apps/columbus789 0 Y DOWNLOAD APEXP_FINDEV.wft APEXP Locations: $PO_TOP/patch/115/import/US/porpocha.wft $PO_TOP/patch/115/import/U...