View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0016892||phplist application||public||29-09-13 23:59||01-10-13 15:57|
|Target Version||3.0.X||Fixed in Version||3.0.5|
|Summary||0016892: Two To headers created when using php mail() function|
|Description||When sending using the php mail() function two To: headers are being created.|
These are the headers of a received email with a few removed:
Subject: Test of content areas
Received: from 188.8.131.52 [184.108.40.206] by www.dcameron.me.uk with HTTP; Sun, 29 Sep 2013 22:37:07 +0000
Date: Sun, 29 Sep 2013 22:37:08 +0000
From: Duncan Cameron <email@example.com>
Reply-To: Duncan Cameron <firstname.lastname@example.org>
X-Mailer: PHPMailer 5.2.5 (https://github.com/Synchro/PHPMailer/)
Sending through an SMTP server doesn't seem to have the same problem.
Possible cause is the method MailSend() in class PHPlistMailer. It adds a To header after phpmailer has already created the headers. This looks to be unnecessary because the method compatSend() already has added the To address including the developer_email processing.
That method has changed between 3.0.2 and 3.0.4.
|Tags||No tags attached.|
This problem can cause the emails to be rejected.
In my case the email was delivered but the person who reported this in the forum said that his emails were rejected - http://forums.phplist.com/viewtopic.php?f=35&t=39695
Someone else has reported receiving emails twice - http://forums.phplist.com/viewtopic.php?f=35&t=39691
I'll look into it properly, but in the meantime the workaround is to comment out line 590 in class.phplistmailer.php
# $header .= "To: ".$this->destinationemail.$this->LE;