Re: Where does email get bounced to?



Hello,

on 04/26/2008 11:17 PM Preventer of Work said the following:
Using Apache + PHP on linux.
Say I use php to send an email, and that email bounces.

Where does it end up?

It goes to the return-path address.


Can I force the return address so it would consistently go to a
particular address?

Yes, in PHP you can set the return-path address but it depends on the
way the message is sent and the OS (and MTA) you are using.

You may want to try this MIME message composing and sending class. It
has several sub-classes specialized in different delilvery methods like
mail() function, SMTP, sendmail, qmail, Microsoft Exchange pickup
folder, etc..

In any case you just need to set the Return-path header and the class
that you use for delivery will take care of mapping the Return-path
address to whatever is the right way to make bounced messages go to the
address you specified.

http://www.phpclasses.org/mimemessage



--

Regards,
Manuel Lemos

PHP professionals looking for PHP jobs
http://www.phpclasses.org/professionals/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
.



Relevant Pages

  • Re: String parsing bug
    ... These emails are sent from a PHP script which uses the ... is that the email headers have an invalid "Return-path". ... to an apparent bug in PHP, which I have replicated as follows: ... If you're curious what headers are sent, send yourself an email, and check ...
    (comp.lang.php)
  • Re: String parsing bug
    ... These emails are sent from a PHP script which uses the ... is that the email headers have an invalid "Return-path". ... to an apparent bug in PHP, which I have replicated as follows: ...
    (comp.lang.php)
  • Re: email sended, but not received
    ... Note that if I send email with java program instead of php, ... I have a Fedora 6 (Linux) with Apache that use sendmail program in mail function, and believe that the problem is as I can set sendmail program of Linux for insert a proper Return-Path. ...
    (alt.php)
  • Re: Why PHP Mail Not Sent
    ... >I noticed that my web mail on yahoo will filter out emails sent from PHP ... >even setting the Return-Path:, but the resulting email had a different ... I think the mail server mangled it. ... >>>have a particular user who is not receiving mail from my PHP application ...
    (comp.lang.php)
  • Re: PHP mail marked is phishing
    ... it phishing takes it as an attempt to explore an eventual bug in a mail ... I use this MIME message composing and sending class. ... message strictly conforming to the e-mail standards. ... PHP professionals looking for PHP jobs ...
    (comp.lang.php)