Front page | perl.beginners |
Postings from March 2002
Sendmail Problems
Thread Next
From:
Joseph Bajin
Date:
March 1, 2002 11:43
Subject:
Sendmail Problems
Message ID:
3C7FD9E1.5070101@aol.com
I am trying to get this program to send mail. Unfortunately I am having
a hard time using sendmail. Could someone please help me out.
Thanks,
######Error Reporting ####
sub Notifyanddie {
my $message = shift;
open(MAIL, "|/usr/lib/sendmail -t -i")
or die "Couldn't open sendmail $!\n";
print MAIL <<END_OF_MSG;
From: addywheregoingto\@address.com
To:MYEMAILADDY\@address.com
Subject: Ad Systems ping Check
<html>
<body>
$message
</body>
</html>
END_OF_MSG
}
Thread Next
-
Sendmail Problems
by Joseph Bajin