using mailx to send an attachment in Redhat 6
We are moving an application from Solaris to Linux Redhat 6. We used the following code to send an attachment using mailx. I was told Redhat 6 mailx had that functionality without using uuencode. Can someone tell me how to convert the current code to not use uuencode:
# mail attachment cat $lv_attach \ | uuencode `basename $lv_attach` \ | mailx -s "$lv_subject" $lv_mailaddr 2>/dev/null Thank you |
From the mailx manpage:
Code:
-a file Code:
echo "Message contents" | mailx -s "Subject" -a "/path/to/file" recipient@example.com |
All times are GMT -5. The time now is 01:29 AM. |