Hello mailing_list,
On 20-Jun-01 23:06:59, you wrote:
>I sent a message last day with subject "perl2php - question" - but I think I
>will describe the problem, I solved with perl, instead of asking for a
>perl2php-code:
>if I send a mail with the php-mail()-function, and the mail bounces (wrong
>address - server down ...), the sysadmin of my ISP will get this bouncing
>mail!
>I tried all possible headers (Return-Path, Error-To, Sender, ...) to
>redirect the bouncing mail to my address but nothing worked - all
>bouncing-mails go to root!
>In Perl I found a way to write a mail as usual, *but* I send the mail by
>specifying the real-sender and the real-receiver!!!
>real-sender: [EMAIL PROTECTED]
>real-receiver: [EMAIL PROTECTED]
>Mail to be sent:
>--
>From: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: TestMail
>Body-Text
>--
>If the mail is delivered, the receiver ([EMAIL PROTECTED]) will only
>see what is written in the mail above (he won't see the real-sender and the
>real-receiver in any header)!
>If the mail isn't delivered correctly [EMAIL PROTECTED] will get a message!
>And I want to implement this with php!!!
>Is this possible???
You need to use sendmail -f switch. You may want to use this PHP class
that emulates the Return-Path header with the -f switch or the SMTP MAIL
FROM:<> command.
http://phpclasses.UpperDesign.com/browse.html/package/9
http://phpclasses.UpperDesign.com/browse.html/package/14
Regards,
Manuel Lemos
Web Programming Components using PHP Classes.
Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED]
--
E-mail: [EMAIL PROTECTED]
URL: http://www.mlemos.e-na.net/
PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]