Diagnostic-Code: smtp; 550 Messages should have one or no To

Once you've installed phpList... ask questions here!
Forum rules
Please help the volunteers to help you by supplying the version of phpList you are using, browser & version and if possible, a link to your phpList installation.

Diagnostic-Code: smtp; 550 Messages should have one or no To

Postby koekje » 8:50pm, Sun 29 Sep, 2013

I just updated from version 2.xx to 3.0.4.
Now when I send a test email or to a test list, phpList says success...
but then I get Mail Delivery System mails that none have really been sent with the error:
Diagnostic-Code: smtp; 550 Messages should have one or no To headers, not 2.

And indeed the header looks like this:
From: "mail@mydomain.org" <mail@mydomain.org>
Subject: Invitation premiere...
Date: 29 september 2013 22:18:28 CEST
To: me@mydomain.com
To: me@mydomain.com
Reply-To: "mail@mydomain.org" <mail@mydomain.org>

So TWICE the 'To'
What can I do????
koekje
phpList newbie
 
Posts: 2
Joined: 8:28pm, Sun 29 Sep, 2013

Re: Diagnostic-Code: smtp; 550 Messages should have one or n

Postby duncanc » 11:04pm, Sun 29 Sep, 2013

I can repeat this when phplist sends using the php mail() function i.e. when config.php has
Code: Select all
# To use a SMTP server please give your server hostname here, leave it blank to use the standard
# PHP mail() command.
define("PHPMAILERHOST",'');

The problem doesn't seem to happen when sending through an SMTP server, so if you can do that to avoid the problem.

I have reported this on the bug system https://mantis.phplist.com/view.php?id=16892

A workaround is to comment out line 590 in file admin/class.phplistmailer.php
Add a '#' character at the beginning of this line

Code: Select all
        $header .= "To: ".$this->destinationemail.$this->LE;
duncanc
Moderator
 
Posts: 2440
Joined: 6:34am, Sat 08 May, 2010
Location: London

Re: Diagnostic-Code: smtp; 550 Messages should have one or n

Postby koekje » 11:51pm, Sun 29 Sep, 2013

This solved the problem.
Thank you!
koekje
phpList newbie
 
Posts: 2
Joined: 8:28pm, Sun 29 Sep, 2013

Re: Diagnostic-Code: smtp; 550 Messages should have one or n

Postby duncanc » 7:53am, Thu 03 Oct, 2013

There is a new release of phplist, 3.0.5, that fixes this problem.
duncanc
Moderator
 
Posts: 2440
Joined: 6:34am, Sat 08 May, 2010
Location: London


Return to Questions and Problems after Installing

Who is online

Users browsing this forum: No registered users and 2 guests