NOTE:: Before reporting an issue, make sure you are running the latest version, currently 3.3.1

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0016892phplist applicationEmailpublic29-09-13 23:5901-10-13 15:57
PlatformOSOS Version
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.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
duncanc (developer)
30-09-13 10:07

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 - [^]
michiel (manager)
30-09-13 12:26

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;

Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker