
StarkRavingCalm
Novice
Feb 12, 2013, 1:08 PM
Post #1 of 3
(177 views)
|
|
Send email from perl script
|
Can't Post
|
|
I am adding email function to a script but cannot get the body of the message to work. NOTE: Everything else works except for the body. Can someone tell me what I am missing?
open(MAIL, "|/usr/sbin/sendmail -t"); ## Mail Header print MAIL "To: $to\n"; print MAIL "From: $from\n"; print MAIL "Subject: $subject\n"; ## Mail Body print MAIL "this is the body of the message"; close(MAIL);
|