in reply to mail error response

That is because you never set the sender address. I believe that adding the following line to your code may do it (I'd need to dust off my "pipe to sendmail" hat to say for certain).
print MAIL "Sender: addrtogetbounces\@example.com\n";
You could solve this problem and enable for better error checking if you used SNMP to send the message, instead of forking a pipe to a sendmail process. There are sevearl good modules to use to do this : Net::SMTP, Mail::Sendmail, even MIME::Lite has this capability...

Replies are listed 'Best First'.
Re: Re: mail error response
by Beatnik (Parson) on Apr 10, 2001 at 13:50 UTC
    I think something like :

    print MAIL "From: addrtogetbounces\@example.com\n";

    might be better

    Greetz
    Beatnik
    ... Quidquid perl dictum sit, altum viditur.
      neither fix seems to work. no error response messages are sent. thanks for any more help. steve