On 2015-10-20 12:38, John Allen wrote:
That is in fact what is installed. Mail and mailx are symlinks to
heirloom-mailx.

True, symlinked to the same binary.

Just tried your initial command. The resulting email has the text "message text" in the body when run as

echo "message text \r" | /usr/bin/mail -s "Server xxx - Alert" -r f...@example.com t...@example.net

but i get the same error as you when i run the command

echo -e "message text \r" | /usr/bin/mail -s "Server xxx - Alert" -r f...@example.com t...@example.net

mailx seems to base64 encode the message text because of the \r?

The difference between these two invocations in mail headers is:

echo without -e
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

echo with -e
Content-Type: application/octet-stream
Content-Transfer-Encoding: base64


regards
christian

Reply via email to