I installed Moodle 3.0.2 version and when a user create a new account the system don't send the email confirmation, it appears a SMTP error. The SMTP configuration is OK, PHPmailer version is 5.1. How can I fix this? Thanks in advance.
Hi,
You would need to enable SMTP debugging, from site administration -> debugging and check the exact error message you get when moodle tries to send an email
Hi, this is the debug info:
Debug info:
Error code: auth_emailnoemail
Stack trace:
line 488 of /lib/setuplib.php: moodle_exception thrown
line 116 of /auth/email/auth.php: call to print_error()
line 86 of /login/signup.php: call to auth_plugin_email->user_signup()
Output buffer: 2016-03-11 21:11:48 SMTP -> get_lines(): $str is "250 DSN
"
2016-03-11 21:11:48 SERVER -> CLIENT: 250- Ok.
250-AUTH LOGIN CRAM-MD5 CRAM-SHA1
250-STARTTLS
250-XVERP=Courier
250-XEXDATA
250-XSECURITY=NONE,STARTTLS
250-PIPELINING
250-8BITMIME
250-SIZE
250 DSN
2016-03-11 21:11:48 CLIENT -> SERVER: STARTTLS
2016-03-11 21:11:48 SMTP -> get_lines(): $data is ""
2016-03-11 21:11:48 SMTP -> get_lines(): $str is "220 Ok
"
2016-03-11 21:11:48 SERVER -> CLIENT: 220 Ok
2016-03-11 21:11:48 SMTP Error: Could not connect to SMTP host.
2016-03-11 21:11:48 CLIENT -> SERVER: QUIT
2016-03-11 21:11:48 SMTP -> get_lines(): $data is ""
2016-03-11 21:11:48 SMTP -> get_lines(): $str is ""
2016-03-11 21:11:48 SERVER -> CLIENT:
2016-03-11 21:11:48 SMTP ERROR: QUIT command failed:
2016-03-11 21:11:48 Connection: closed
2016-03-11 21:11:48 SMTP connect() failed.