Thanks for your reply.  We tried adding Return-Path but it doesn't get 
overwritten and when I look in the Mime headers I see that the Return-Path is 
still the user that runs the web process.  
We also tried setting the Reply-To field and I see in the mime header that it 
was changed to what we want but the undelivered mail still goes back to the 
user that runs the web process.
Maybe we have to configure something in our mail system?  Any suggestions?
Thanks for any help.
-- 

Malka Cymbalista
Webmaster, Weizmann Institute of Science
[EMAIL PROTECTED]
08-934-3036


>>> On 6/19/2008 at 12:21 PM, in message
<[EMAIL PROTECTED]>, Dermot
<[EMAIL PROTECTED]> wrote:
> 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/


Reply via email to