Viewing 1 to 4 of 4 items
Tag Archives: Send Mail

How to send multiple attachments through e-mail in UNIX?

I am facing an issue with the “mailx” command while trying to mail attachments. I am able to mail a single attachment by using the “uuencode” command, I am not sure how to use it for multiple attachments… PFA the sample code… MESSAGE=$LOG_FILE or $ERR_FILE FILE=$SOURCE_PATH/$ATTACHMENT_FILENAME FILENAME=$ATTACHMENT_FILENAME’_’$DATE.csv SUBJECT=’Last Run Details for the XYZ program’ MAILLIST=$SUCCESS_MAILLIST  Full Article…


Sending e-mail using shell scripts

The “mail” command accepts additional command line parameters, e.g. -s subject Use subject for the e-mail title -c address Send copy of the mail to the specified address -b address Send blind carbon copy to specified address Some common usage examples: Send a log file to the system administrator: # mail -s “Reorganization completed” root < db_reorg.log Send mail to  Full Article…