Starting out with new installation

I’ve just installed 3.2.3 on xampp (running PHP 5.6.14)

and made the following changes in the config file:

define(“PHPMAILERHOST”,‘smtp.domain.com’);
$phpmailer_smtpuser = ‘your_mail_username’;
$phpmailer_smtppassword = ‘your_mail_password’;
define(‘PHPMAILERPORT’,465);
define(“PHPMAILER_SECURE”,‘tls’);

However, the test mail i tried sending failed.

What other changes must I make?

See this topic for how to enable smtp debug Upgrade 3.2.3 and SMTP

With “SMTPDebug = 4”, I resent the test message. What does the following error message mean?

2015-12-05 13:38:54 Connection: opening to smtp.myserver.com:465, timeout=5, options=array ( ) 2015-12-05 13:38:54 Connection: opened 2015-12-05 13:38:59 SMTP -> get_lines(): $data is “” 2015-12-05 13:38:59 SMTP -> get_lines(): $str is “” 2015-12-05 13:38:59 SMTP -> get_lines(): timed-out (5 sec) 2015-12-05 13:38:59 SERVER -> CLIENT: 2015-12-05 13:38:59 CLIENT -> SERVER: EHLO localhost 2015-12-05 13:38:59 SMTP -> get_lines(): $data is “” 2015-12-05 13:38:59 SMTP -> get_lines(): $str is “” 2015-12-05 13:38:59 SERVER -> CLIENT: 2015-12-05 13:38:59 SMTP ERROR: EHLO command failed: 2015-12-05 13:38:59 SMTP NOTICE: EOF caught while checking if connected 2015-12-05 13:38:59 Connection: closed 2015-12-05 13:38:59 SMTP Error: Could not connect to SMTP host. 2015-12-05 13:38:59 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

I guess that the port you are trying to use is being blocked. Can you try using an unencrypted connection?

This may be of help?

Success. You made my day duncanc. Thank you.