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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mailx with file as an Attachment 2

Status
Not open for further replies.

simpson

MIS
Oct 23, 2001
58
CA
All,

I would like to email a txt file from the command line as an attachement rather than the txt file being the body of the message.
example. mailx -s "Test Email" anyone@something.com < /tmp/text_file.txt
this just puts the context of /tmp/text_file.txt in the body. I want it to be delivered as an attachment.

Any help would be greatly appreciated.
Thanks
Simp
 
Search for "uuencode" , for example:

thread822-1308618
 
Try: faq80-1843

or faq80-1844

from the FAQs area from this same forum.

Code what you mean,
and mean what you code!
But by all means post your code!

Razalas
 
Thanks guys, this is exactly what i needed.

Greatly appreciated.
 
Annihilannic,

Thanks![bigsmile]

Code what you mean,
and mean what you code!
But by all means post your code!

Razalas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top