2008/6/19 Malka Cymbalista <[EMAIL PROTECTED]>: > We are running perl 5.8.5 and apache 2.2.6 on a Linux machine. > One of our web pages is a form that allows people to send email. The script > that drives the form is a perl script and it uses Mime::Lite to send the > email. > The script creates the entire mail message including the From: and To: > lines. If the email address to whom the email is being sent is not a valid > address, the email gets returned to the user that is running the web process. > We would like that the returned email goes to the emaill address that is in > the From: line. Is there any way to do this? > Any help will be appreciated.
I do it like this $msg = MIME::Lite->new( From => $q->param('email_from'), To => $q->param('email_to'), Subject => "Hello from", Type => 'multipart/mixed', ); $msg->add("Return-Path" => $email_from ); HTH, Dp. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/