Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mail command can't seem to make it put a subject in

Status
Not open for further replies.

Chrissirhc

Programmer
May 20, 2000
926
GB
I'm running this command:

mail chris@domain.com < /home/dir/mailfile.txt

And it doesn't put a subject because I haven't asked it to, however, when I run this

mail -s test chris@domain.com < /home/dir/mailfile.txt

It doesn't put the subject test in there for some reason.

Why and how would I do it so it puts a subject in there?

Thanks,

Chris
 
Hi,

Try mailx instead of mail. Have you try read the manual?

dbase77
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top