You've got unmatched quotes -- see line:

        print SENDMAIL "Subject: Your ticket will be sent. "\n";

Was there anything useful in the dead.letter file?

I wasn't sure, but I thought you were supposed to end an SMTP email message
by doing something like this:

print SENDMAIL "\n.\n";

That tells sendmail you're finished -- before closing the FH.

Are addresses you're using valid RFC822 [email addresses]?  

Try running this from a command prompt:

$sendmail -bv $recipientCustomer
$sendmail -bv $CSRnumber

Replace your vars $sendmail, $recipientCustomer with the actual values for
these vars and see what you get running the above commands...

P

> ----- Original Message -----
> From: "Eko Budiharto" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Monday, April 18, 2005 2:23 PM
> Subject: sending HTML formatted email using SENDMAIL
> 
> 
> > 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;
> >
> >
> >
> > ---------------------------------
> > Do you Yahoo!?
> >  Read only the mail you want - Yahoo! Mail SpamGuard.
> 
> 
> --------------------------------------------------------------
> --------------
> ----
> 
> 
> > _______________________________________________
> > ActivePerl mailing list
> > [email protected]
> > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
> 
> _______________________________________________
> ActivePerl mailing list
> [email protected]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
> 
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to