Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Returnpath for mail

0 views
Skip to first unread message

Andy

unread,
Jun 6, 2002, 1:08:18 PM6/6/02
to php-g...@lists.php.net
Hi there,

I am wondering if it is possible to send email via the mail function with
lets say adress_1 and then if the recipient clicks on return he will adress
his email automaticly to adress_2.

I found this in my docs, but does not work though:

$mailHeaders .= "Return-Path: <".$adress_return.">\n"; // Return path for
errors

does anybody have an idea how to do that?

Thanx,

Andy


Manuel Lemos

unread,
Jun 6, 2002, 1:17:34 PM6/6/02
to php-g...@lists.php.net
Hello,

Yes, you need to use sendmail -f switch. You may want to try this class
that already does it for you if you specify the Return-Path in the list
of headers:

http://www.phpclasses.org/mimemessage


--

Regards,
Manuel Lemos

Chris Hewitt

unread,
Jun 6, 2002, 1:27:06 PM6/6/02
to php-g...@lists.php.net
Andy,

I stand to be corrected, but I think you mean the user hits "reply"
rather than "return", in which case it is "Reply-To" you need. I think
"Return-Path" is for error messages for undeliverable mail.

Now someone is probably going to tell me I'm quite wrong...

Regards

Chris

0 new messages