[NTLUG:Discuss] mail or mailx question on attachments

Ryan Sweat ryans at cecentertainment.com
Fri Nov 22 00:04:46 CST 2002


On Thu, 2002-11-21 at 22:25, Fred James wrote:
> We found a solution (I think) and I'd like your comments, please - 
> especially if you can see a potential problem - we are still testing it, 
> but it works so far.
<snip>
> would (a) attach the file "filename.pdf" to the email, (b) make the 
> "Reply-To" address "joe at whateever.com", and make the "Subject" line read 
> "Hey Joe what do you know".

This can easily be done on the command line with mailx or mutt in a single statement.

uuencode filename filename | mail -s 'subject' recipient

echo 'This is the body' | mutt -x -a filename -s 'subject' recipient

-ryan





More information about the Discuss mailing list