How to category Design category Development category News category

phpmailer reply-to fix

Do you run a mail list with phpmailer and want to enable a reply-to path on your email messages while leaving the from address tagged to a bounce handeling email box?

Heres how we cracked it..

Modification to PHPlist, version 2.10.2

open config/config.php and add to the end:

<php/>
  1. <br />
  2. # START web engineer mod<br />
  3. define(&quot;DEFAULT_REPLY_TO&quot;,&quot;mailbox@domain.com&quot;); // your email address here<br />
  4. # END web engineer mod<br />

Then open admin/sendemaillib.php and insert on line 534 after the following VERBOSE bit:

<php/>
  1. <br />
  2. if (VERBOSE)<br />
  3. output(&quot;Sending text only to $domaincheck&quot;);<br />
  4. }<br />
  5. # START web engineer mod<br />
  6. if(defined(&quot;DEFAULT_REPLY_TO&quot;)){<br />
  7. $mail->AddReplyTo(DEFAULT_REPLY_TO); // hard coded replyto<br />
  8. }<br />
  9. # END web engineer mod<br />

Thats it – should function correctly.

Incidently – we use phpmailer and qmail.

Tags:

Jamie

qr code

Leave a Comment

Your more than welcome to enter the discussion, all comments are moderated however - so please don't leave spam, it will be canned...