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…
Viewing 1 to 4 of 4 items
Solaris: send mail with attachment from Solaris command line
I like to use this function bellow in my profile to send files to my mail account as attachements; to use in your profile simply replace EMAIL@ADDRESS with your email address on a mail enabled host: function mailme(){ /usr/bin/uuencode $(echo $1) $(echo $1)|/usr/bin/mailx -s “mailme from $(/usr/bin/hostname)” EMAIL@ADDRESS }