Search This Blog

Tuesday, December 8, 2009

Useful command, sendmail

cat mail.txt | /usr/lib/sendmail -t -X log.txt

mail.txt have the following format: (the -t option)
to:recipient@somewhere.com
from:you@yourdomain.com
subject:Testing 123

This is my message.
and log.txt can log everything in and out. (the -X option)

No comments: