I am new to mailx and try now to send a mail with mailx from the terminal which contains a text and an attachment. This is my command:
echo "This is the text in Mail" | mailx -A data.out -s "TESTMAIL" my_name@my_insitute.com
I looked up the manual which says I need to use the -A and not the -a for an attachment. But now mailx does not send my text anymore. Just the attached file. But I want both. What is my mistake?