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

unix mailx command

Status
Not open for further replies.

nappaji

Programmer
Mar 21, 2001
76
US
how do i send attachments using the mailx command..

using
mailx <sender> < filename.html

dosenot send it as an attachment.

thanks
nappaji
 
You can't, you can use a mail program like mutt or pine which will allow you to attach files. d3funct
zimmer.jon@cfwy.com
The software required `Windows 95 or better', so I installed Linux.

 
you can use this:
uuencode filename filename | mailx -m -s &quot;Subject is ...&quot; my.name@my.company.com

This will send your filename as attachment. Don't forget -m and filename twice, if you need to change the from field , likely to have ability to write some body text, you can write a &quot;script&quot; to format attachments to be MIME compliant and then use &quot;sendmail&quot; so you don't need to decode them, if you want you can check a shell script already done at:


Hope this helps,
Regards,

Carlos Almeida,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top