Posted by Manuel Lemos on 04/06/07 00:44
Hello,
n 04/05/2007 04:10 PM Adam R said the following:
> I want to use mail() function but I can't overwrite Retun-Path info. Most
> mail servers overwrite the 'Return-path' header sent by the PHP mail()
> function by a default email address (httpd@hostingcompany.com or
> apache@domain.org).
>
> I tried :
>
> $headers = 'From: MyName<'.$from.'>\r\n';
> $headers .= 'Return-Path: MyName<'.$from.'>\r\n';
>
> even:
>
> $headers,"-f".$from
>
> can't help.
>
> Any idea? Thanks.
This depends on the platform or the delivery method. Take a look at this
message composing and sending e-mail messages. It supports the
Return-Path header and makes sure it works with different platforms and
deleivery methods:
http://www.phpclasses.org/mimemessage
--
Regards,
Manuel Lemos
Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
[Back to original message]
|