My new hoster wanted me to host from the hoster’s smtp, so I changed local host to the hoster smtp and made a few lines to try to get the SSL working.
I am not getting it to work, these are the lines in the config :
# If you want to use the PHPMailer class from phpmailer.sourceforge.net, set the following
# to 1. If you tend to send out html emails, it is recommended to do so.
define("PHPMAILER",1);
# To use a SMTP please give your server hostname here, leave it blank to use the standard
# PHP mail() command.
define("PHPMAILERHOST",'smtp.bhosted.nl');
define("PHPMAILER_SECURE",'ssl');
// Enter your SMTP2GO account's SMTP server.
# if you want to use smtp authentication when sending the email uncomment the following
# two lines and set the username and password to be the correct ones
$phpmailer_smtpuser = '***********';
// Enter your SMTP2GO Username.
$phpmailer_smtppassword = '**********';
// Enter your SMTP2GO Password.
$phpmailer_smtpport = '465';
// 8025, 587 and 25 can also be used
define('PHPMAILERPORT',465);
define("PHPMAILER_SECURE",'ssl');
$phpmailer_smtpsecure = 'ssl'; //ssl or tls or blank
Because you are running a very old release of phplist the smtp debug config setting cannot be used.
You can try making the code change identified here to file admin/sendemaillib.php
Thanks again, it looks like it is connecting but then fails?
These are the error lines :
Connection: opening to smtp.bhosted.nl:465, t=5, opt=array ()
Connection: opened
SERVER -> CLIENT:
CLIENT -> SERVER: EHLO www.activate.nl
SERVER -> CLIENT:
SMTP ERROR: EHLO command failed:
SMTP NOTICE: EOF caught while checking if connected
Connection: closed
SMTP connect() failed.
Try a higher debug value, say 5, but otherwise I don’t really know.
I can try to connect to that mail server from my phplist and it fails, as expected, on the login
SERVER -> CLIENT: 220 smtp.bhosted.nl ESMTP
CLIENT -> SERVER: EHLO dcameron.me.uk
SERVER -> CLIENT: 250-smtp.bhosted.nl250-PIPELINING250-SIZE 41943040250-AUTH LOGIN PLAIN250-ENHANCEDSTATUSCODES250-8BITMIME250 SMTPUTF8
CLIENT -> SERVER: AUTH LOGIN
SERVER -> CLIENT: 334 xxxx
CLIENT -> SERVER: xxx
SERVER -> CLIENT: 334 xxx
CLIENT -> SERVER: xxx
SERVER -> CLIENT: 454 4.7.0 Temporary problem. Please try again later.
SMTP ERROR: Password command failed: 454 4.7.0 Temporary problem. Please try again later.
SMTP Error: Could not authenticate.
I have made a few changes ot the config and now it is working :slight_smile:
> # To use a SMTP please give your server hostname here, leave it blank to use the standard
> # PHP mail() command.
> define("PHPMAILERHOST",'smtp.bhosted.nl');
> define("PHPMAILER_SECURE",'ssl');
> // Enter your SMTP2GO account's SMTP server.
>
>
> # if you want to use smtp authentication when sending the email uncomment the following
> # two lines and set the username and password to be the correct ones
> $phpmailer_smtpuser = '*****l';
> // Enter your SMTP2GO Username.
>
> $phpmailer_smtppassword = '********';
> // Enter your SMTP2GO Password.
>
> $phpmailer_smtpport = '465';
> // 8025, 587 and 25 can also be used
>
> define('PHPMAILERPORT',465);
> define("PHPMAILER_SECURE",'ssl');
>
> $phpmailer_smtpsecure = 'ssl'; //ssl or tls or blank
Many thanks for helping me out!