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
|