ken bohnenkamp
3rd October 2013, 18:45
I am using the unix code below to email out 2 attachments to external customers. My customers say that they can't open the attachments. One of my files is a PDF and the other is a TXT file. Some say that the attachments look like a bunch of garbage letters that they can't make out. Any one have any idea's? If I email to Gmail, the attachments look fine and I can open them but if I email to yahoo, the attachments look like a bunch of garbage letters.

(cat $BODYTEXT; uuencode $TMPDIR/$BASENAME $TMPDIR/$BASENAME; uuencode $7 $7) | mailx -s "$1" $EMAIL

:(

Han Brinkman
3rd October 2013, 21:06
Ken,

I used to do it the same way. Maybe you can try the mime solution as described in http://www.shelldorado.com/articles/mailattachments.html

Regards,

ken bohnenkamp
3rd October 2013, 21:25
Did you ever run into the situation where the attachments were unreadable for the email recipient ?

Han Brinkman
4th October 2013, 12:47
Ken,

I don't know for sure. Too long ago. Overhere it's almost windows servers that we use nowadays.

Regards,