Note that there are some explanatory texts on larger screens.

plurals
  1. POSend email from PHP and catch the autoresponses
    primarykey
    data
    text
    <p>I'm sending emails using a PHP script and class.phpmailer.php. I need to be able to 'catch' bounces and auto-responses. I'm able to catch the bounces already. I created an alias that redirects bounces to a php script, and I parse the email there. I include some information in the original email in the headers, so I can know which emails bounced.</p> <p>The same logic should work for the auto-responses, I think the problem is that the email are not getting to the server. I already have a reverse DNS configured, pointing to the server IP address.</p> <p>This is part of how I send an email:</p> <pre><code> $mail = new PHPMailer(); $mail-&gt;From = $fromAddr; $mail-&gt;Sender = $sender; $mail-&gt;FromName = $fromName; $mail-&gt;AddAddress($email); $mail-&gt;IsHTML(true); $mail-&gt;Subject = $subject; </code></pre> <p>the I add the headers, for example:</p> <pre><code> $mail-&gt;AddCustomHeader($mail-&gt;HeaderLine("From", $fromAddr)); $mail-&gt;AddCustomHeader($mail-&gt;HeaderLine("Subject", $subject)); $mail-&gt;AddCustomHeader($mail-&gt;HeaderLine("Company-State", "Florida")); $mail-&gt;AddCustomHeader($mail-&gt;HeaderLine("Company-Country", "USA")); $mail-&gt;AddCustomHeader($mail-&gt;HeaderLine("From", $fromAddr)); $mail-&gt;AddCustomHeader($mail-&gt;HeaderLine("Reply-To", $fromAddr)); </code></pre> <p>My RDNS is something like: mail2.mydomain.com. The bounces are going to "www-data". What should I add and where? something like www-data@mail2.mydomain.com?</p> <p>Tks!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload