Hello
I'm having issues with automatic sending mails ( for example in case add new user, generate password and notify user ).
The debug smtp erros after adding new user, is as follow :
Connection: opening to ssl://mail.website.com:465, t=10, opt=array ( ) SMTP ERROR: Failed to connect to server: (0) SMTP connect() failed.I am running Moodle 2.9.9 on a linux server
Version cPanel | 64.0 (build 11) |
Version Apache | 2.2.31 |
Version PHP | 5.5.30 |
Version MySQL | 5.6.35 |
Architecture | x86_64 |
Os | linux |
i'm using the following Cron job :
*/5 | * | * | * | * | /usr/bin/php -q public_html/admin/cli/cron.php?password=password >/dev/null 2>&1 |
and the following SMTP configuration (plugin>message output> email) :
SMTP hosts: mail.website.com:465
SMTP security: SSL
SMTP username: username
SMTP password: password
Newline characters in mail: CRLF
(i tried also a non securised connexion configuration with the default port 25, always the same error)
Anyone have any suggestions where I should start looking to figure out what's going wrong?
Thanks!