Jun 12, 2011

Use the send mail to send the results from the server

I was trying to find a way to send the results of the calculation done on a server to my email
I found this code this code on this post from ambikeh: http://www.unix.com/302072420-post2.html for more info on the send command http://linux.about.com/od/commands/l/blcmdl8_sendmai.htm

But i need to say that i didn t have time to test it

( cat << ! FROM : $FROM To : $TO Subject : ${SUB} Cc : ${CC} ! cat << ! HOPE THIS WORKS Test123 This sample E-mail message with the Unix sendmail utility. ! #uuencode ${1} ${1} ! ) | /usr/lib/sendmail -vt

No comments: