Feb 12, 2013, 1:08 PM
Post #1 of 3
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.
Send email from perl script
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";