Friday, July 08, 2005

email attachment in UNIX

Okay, you want to send an email with an attachment.
Here is how:

uuencode filename attachment_name mailx -s "Report" -r from_email_id to_email_id

example:
uuencode myfile.csv myfile.csv mailx -s "Here is your report" -r chagan@yahoo.com toyou@hotmail.com

Simple, isn't it???

0 Comments:

Post a Comment

<< Home