I am trying to send the contents of a text file as an attachment body. This works fine on HP-UX, but we recently switched to RedHat Linux and it no longer works properly.
Here is my team
cat test.txt | mailx -sTest me@email.ca
If "test.txt" contains low ASCII characters, then it works fine. However, my text file may have French characters and will always contain a registered trademark. It seems that when I try to send these characters, Linux converts the email into an application (in the form of attxxxxx.dat). The attachment has all my data perfectly formed, but my recipients just want a regular email - not a dat application. We tried to set environment variables and enter extended character set commands in the mailx command, but to no avail.
Any suggestions or ideas are welcome.
source share