Link to home
Start Free TrialLog in
Avatar of rgregor6
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 ?
Avatar of Alf666
Alf666

Just type :

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.

ASKER CERTIFIED SOLUTION
Avatar of fim32
fim32

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
echo "some text that I type"|mailx -s "TEST" abc.com
# but  fim32's here document is more likely what you need