Re: SMTP/mail question

From: Date: Thu, 21 Jun 2001 04:36:44 +0000
Subject: Re: SMTP/mail question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-54728@lists.php.net to get a copy of this message
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: bounce@myip.com >real-receiver: someoneelse@yourip.com >Mail to be sent: >-- >From: me@myip.com >To: you@yourip.com >Subject: TestMail >Body-Text >-- >If the mail is delivered, the receiver (someoneelse@yourip.com) 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 bounce@myip.com 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/?user=mlemos@acm.org -- E-mail: mlemos@acm.org URL: http://www.mlemos.e-na.net/ PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp --

« previous php.general (#54728) next »