Hello, it’s my first message here but I use phpList for years.
phpList 3.08 - PHP Version 5.4.45
All was working fine 6 months ago for my last campaign but recently, for a new one, all e-mails failed.
I use a SMTP server to send e-mails and it is configured in tls using port 587, this configuration is done in config.php
When I send a test e-mail to my mail address all is fine and I receive the e-mail (the connection to the SMTP server is good because I saw it in phplist debug mode).
When I try to launch the campaign even by cron or by webpage every e-mails failed.
I tried to launch my cron job by command line on a very short list of e-mails (2 e-mails), the job works but I have one error on each e-mail:
phpList - Error sending message 34 (2/201) to z…@…fr (z…@…fr) [5.0196490000] (275)
I have the same problem if I try to send e-mails by web page.
I don’t understand what could be wrong because on phplist side I changed nothing.
In phpList System / Events (my interface is in French so, I’m not sure of the exact terms) I can see:
Erreur lors de l’envoi d’un courriel à
(translation: “Error sending email to”) zxxxx@yyyy.fr The following From address failed: pxxxxxx@yyyyyyy.com : Called Mail() without being connected
So, I think that using batch processing even by Cron or webpage, there is a connection failing to the SMTP server. But I don’t understand why it works, using the same config.php parameters, on campaign test mode.
What is the difference between batch and test mode for this precise action (connection to SMTP server)?
Is this the email address that you are using in the From field of the campaign? It should be on the same domain as the server that you are sending from.
I found the problem !
In fact, because the testing e-mail was not working anymore when I tried, I change 2 lines in my config.php:
$phpmailer_smtpport = ‘587’;
$phpmailer_smtpsecure = ‘tls’; replaced by:
define(‘PHPMAILERPORT’,‘587’);
define(“PHPMAILER_SECURE”,‘tls’);
Doing this, the test e-mail was working fine.
But any batch e-mail did not work anymore.
The solution for me, to have everything working, is to keep the 4 lines in config.php
I don’t know why this has been necessary to work !
Yes, I noticed, but 3.0.8 is very much out of date and has many security fixes between 3.0.8 and 3.2.4 that people are (as always) advised to update to latest versions of all software where freely available.
Hello,
Yes your present server php version is 5.4 but you will find in cpanel ( if you are using ) php version selector in Software and services , and select public_html folder and assign php version 5.3,
Thanks