I am sending an email with content, subject and attachment on a Solaris system. Some users are receiving the mail ok with CSV file and everything, and some users are receiving a content in base64 style like hieroglyphs. The problem is, that when I send email to some domain is working and to some not.
echo ${BODY}; uuencode /data/${FILE} ${FILE}) | mailx -r "[email protected]" -s "Export csv file" "[email protected]"
So my question is how to implement in a different way this part of code. It is a bash script and everything works fine (so I don't want to change all of it) but probably I have to change uuencode part. I can not use mutt or mail.
I think Content Type “application/vnd.ms-excel” should be used in my case, but do not know how to implement all this.