Updated to 3.5.4 and now I have a different error “message”:"SMTP connect() failed. The server certificate has been checked and is ok
Please refer to my post:
And check the detailed error message returned.
Invalid hostentry:
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
{“code”:2,“file”:"/var/www/vhosts/loveyurt.co.uk/httpdocs/dmxConnectLib/PHPMailer/PHPMailer/PHPMailer.php",“line”:1879,“message”:“SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting",“trace”:"#0 /var/www/vhosts/loveyurt.co.uk/httpdocs/dmxConnectLib/PHPMailer/PHPMailer/PHPMailer.php(1601): PHPMailer\PHPMailer\PHPMailer->smtpSend()\n#1 /var/www/vhosts/loveyurt.co.uk/httpdocs/dmxConnectLib/PHPMailer/PHPMailer/PHPMailer.php(1437): PHPMailer\PHPMailer\PHPMailer->postSend()\n#2 /var/www/vhosts/loveyurt.co.uk/httpdocs/dmxConnectLib/modules/mail.php(132): PHPMailer\PHPMailer\PHPMailer->send()\n#3 /var/www/vhosts/loveyurt.co.uk/httpdocs/dmxConnectLib/lib/App.php(193): modules\mail->send()\n#4 /var/www/vhosts/loveyurt.co.uk/httpdocs/dmxConnectLib/lib/App.php(157): lib\App->execSteps()\n#5 /var/www/vhosts/loveyurt.co.uk/httpdocs/dmxConnectLib/lib/App.php(127): lib\App->execSteps()\n#6 /var/www/vhosts/loveyurt.co.uk/httpdocs/dmxConnectLib/lib/App.php(116): lib\App->exec()\n#7 /var/www/vhosts/loveyurt.co.uk/httpdocs/dmxConnectLib/lib/App.php(94): lib\App->exec()\n#8 /var/www/vhosts/loveyurt.co.uk/httpdocs/dmxConnect/api/mail/formmailer.php(8): lib\App->define()\n#9 {main}”}
Looking at your link from the first post i see:
2020-11-16 11:59:35 SERVER -> CLIENT: 535 5.7.8 Error: authentication failed: authentication failure<br>
2020-11-16 11:59:35 SMTP ERROR: Username command failed: 535 5.7.8 Error: authentication failed: authentication failure<br>
SMTP Error: Could not authenticate.<br>
It seems there is an issue with your SMTP auth details.
Teodor, this doesn’t make sense I have verified username and password are correct.
This is a new error, previously it was other issues, JSON and certification.
That’s strange. Please try changing the AuthType
to LOGIN
, which is also supported by your server
edit the dmxConnectLib/modules/mail.php
file and after line 58 add: $mail->AuthType = 'LOGIN';
save and upload the file to see if this resolves the auth error you are getting.
Thanks for all your help. The problem has now been resolved by the hosting company by some “adjustments “ to the server.