Tuesday, August 11, 2009

Sending mail from unix box with attachment

First create the message in a text file and give below command

mailx -s "SQL File you requested" t.ullas@gmail.com < message |/usr/bin/uuencode sql.zip sql.zip >> message

No comments: