On Fri, 2002-03-01 at 14:43, Joseph Bajin wrote:
> 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
>
>
>
> }
My advice would be to avoid using the sendmail program and to use
Mail::Sendmail or Mail::Sender instead.
--
Today is Setting Orange the 60th day of Chaos in the YOLD 3168
You are what you see.
Missile Address: 33:48:3.521N 84:23:34.786W
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]