Eko Budiharto wrote: > Hi, > I am trying to send a HTML formatted using SENDMAIL, but I always > getting an error message, "saved message /.../dead.letter" Can someone > explain to me why I am getting this error message? > > open SENDMAIL, "|$sendmail" or die "Cannot pipe $sendmail: $!"; > print SENDMAIL "MIME-Version: 1.0\n"; > print SENDMAIL "Content-Type: text/html\n"; > print SENDMAIL "To: ", $recipientCustomer, "\n"; > print SENDMAIL "From: ", $CSRnumber, "<", $CSRnumber, "> \n"; > print SENDMAIL "Subject: Your ticket will be sent. "\n"; > print SENDMAIL "\n"; > > print SENDMAIL "<center><strong><font size='5' > face='arial'>Report</font></strong></center>"; > close SENDMAIL;
Try something like this (add any additional headers prior to the first empty newline): open (MAIL, "|$sendmail -t -oi") or die "Error |$sendmail: $!"; print MAIL "To: $mailto\n"; print MAIL "From: $from\n"; print MAIL "Subject: $subject\n"; print MAIL "\n"; print MAIL $mail_msg; print MAIL "\n"; close MAIL; -- ,-/- __ _ _ $Bill Luebkert Mailto:[EMAIL PROTECTED] (_/ / ) // // DBE Collectibles Mailto:[EMAIL PROTECTED] / ) /--< o // // Castle of Medieval Myth & Magic http://www.todbe.com/ -/-' /___/_<_</_</_ http://dbecoll.tripod.com/ (My Perl/Lakers stuff) _______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
