View Issue Details

IDProjectCategoryView StatusLast Update
0016892phpList 3 applicationEmailpublic01-10-13 15:57
Reporterduncanc Assigned To 
Status resolvedResolutionfixed 
Product Version3.0.4 
Target Version3.0.XFixed in Version3.0.5 
Summary0016892: Two To headers created when using php mail() function
DescriptionWhen 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 [] by with HTTP; Sun, 29 Sep 2013 22:37:07 +0000
Date: Sun, 29 Sep 2013 22:37:08 +0000
From: Duncan Cameron <>
Reply-To: Duncan Cameron <>
Message-ID: <>
X-Priority: 3
X-Mailer: PHPMailer 5.2.5 (
X-phpList-version: 3.0.4
X-MessageID: 4
Precedence: bulk
MIME-Version: 1.0
Content-Type: multipart/alternative;

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.
TagsNo tags attached.



30-09-13 10:07

updater   ~0052293

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 -

Someone else has reported receiving emails twice -


30-09-13 12:26

administrator   ~0052294

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;