Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Return-Path for bounced e-mail

Status
Not open for further replies.

aas1611

Programmer
Dec 14, 2001
184
DE
Hi all,

The following is my PHP code for sending e-mail:
Code:
$header  = "From:abo@versicherungsjournal.de<Registrierung Versicherungsjournal> \n";
$header .= "Return-Path:abo@versicherungsjournal.de<Registrierung Versicherungsjournal> \n"; 
$header .= "Content-type: text/plain; charset=iso-8859-1 \n"; 

if (mail("$email",$subject,$mailtext,$header)) {
...

I have made a few tests, but up until now I haven't received any emails reporting the unknown e-mails. It is supposed to go back to the email on Return-Path, right? (in this case, abo@...)

Does that mean my code is wrong, or it takes a while to receive the emails?

If my code looks weird or wrong to you, can you give me suggestion to fix it?

Thanks
Andre
 
I just want to set an e-mail (as a return adresse), where the mail system sends an information back If the email I send to (receiver) is unknown.

All I understand, Return-Path is for a bounced email, while Reply-to is when the receiver already got the email and then clicks the reply button.

so?

Andre
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top