2009/08/26

Email Tips and Tricks

Send an email:

/usr/bin/echo "message here" | /usr/bin/mailx -s "Subject Here" recipient-email@example.com

Send a file by email:

/usr/bin/echo "see attachment" | /usr/bin/mailx -s "I'm sending a file" -a /file/to/send recipient-email@example.com

No comments:

Post a Comment