I have a Perl script which is supposed to send an email, with the content consisting of lines of the form
key = value
The resulting message is sent out by the Perl command
`echo "$msg" |
mailx -r $WEBMASTER_EMAIL -s "$field{'subject'}" $field{'email'}\n`;
This works fine when the values are standard ASCII. However, it doesn't work when extended characters are part of any of the values. Instead of text, the email contains an ATT000001.bin file containing the key value pairs.
Is there a parameter I can send to mailx to stop it doing this, or a recommended way I convert my values so that mailx handles them correctly?
Thanks in advance