Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2001062

[PHP] SMTP/mail question From: mailing_list <email protected>
Date: 06/20/01

Hi,

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 <email protected>
real-receiver: someoneelse <email protected>

Mail to be sent:

--
From: me <email protected>
To: you <email protected>
Subject: TestMail

Body-Text --

If the mail is delivered, the receiver (someoneelse <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 bounce <email protected> will get a message!

And I want to implement this with php!!! Is this possible???

(for an example you can look at http://perl.about.com/compute/perl/library/weekly/aa022000d.htm )

thanks michi

-- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net

-- GMX Tipp:

Machen Sie Ihr Hobby zu Geld bei unserem Partner 1&1! http://profiseller.de/info/index.php3?ac=OM.PS.PS003K00596T0409a

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>