Tuesday, May 22, 2012

Unix Command to send mail with attachment


$ echo "something"|mailx -s "subject" recipient@somewhere.com

WITH ATTACHMENT
--------------------------

$ uuencode   |mailx -s "subject" recipient@somewhere.com


1 comment:

Vijay Bhaskar said...

Never thought that uuencode can be used to attach files in emails.

mail command examples in unix