rgregor6
asked on
Using mailx to send some text instead of file.
I can use mailx to send file using "mailx -s "TEST" abc.com < filename" but how do I use mailx to send some text that I type ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
echo "some text that I type"|mailx -s "TEST" abc.com
# but fim32's here document is more likely what you need
# but fim32's here document is more likely what you need
mail user@domain.tld
It will ask you for the subject, and then you can type your text in.
End it with a point (".") alone at the beginning of a line.