Configure outgoing email in Moodle
How to configure SMTP email in Moodle, so that Moodle can generate password reset emails, badges, and more. Navigate to Course Admin – Plugins – Message Outputs – Email, and then enter your SMTP email host, port, username, and password. In this video, we do all of that, and then show email working for password resets.
by Brandan Jones
linux smtp server
Hi, can you help me? Your site couldn't communicate with your mail server. Please check your outgoing mail configuration.
sir could you please mention the plugin
no fonction please help me ?
Do I need to configurate OAuth 2,first?
Sir, thank you for your reply. but when i m testing email following error appear :
020-06-09 06:25:55 Connection: opening to ssl://smtp.gmail.com:465, timeout=300, options=array()
2020-06-09 06:25:55 Connection: opened
2020-06-09 06:25:55 SERVER -> CLIENT: 220 smtp.gmail.com ESMTP d6sm332684pjh.5 – gsmtp
2020-06-09 06:25:55 CLIENT -> SERVER: EHLO localhost
2020-06-09 06:25:55 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [45.125.156.10]
250-SIZE 35882577
250-8BITMIME
250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-CHUNKING
250 SMTPUTF8
2020-06-09 06:25:55 CLIENT -> SERVER: AUTH LOGIN
2020-06-09 06:25:56 SERVER -> CLIENT: 334 VXNlcm5hbWU6
2020-06-09 06:25:56 CLIENT -> SERVER: bGlicmFyeUB3YXltYWRlZHUub3Jn
2020-06-09 06:25:56 SERVER -> CLIENT: 334 UGFzc3dvcmQ6
2020-06-09 06:25:56 CLIENT -> SERVER: V21jZUAyMDA0
2020-06-09 06:25:56 SERVER -> CLIENT: 535-5.7.8 Username and Password not accepted. Learn more at
535 5.7.8 https://support.google.com/mail/?p=BadCredentials d6sm332684pjh.5 – gsmtp
2020-06-09 06:25:56 SMTP ERROR: Password command failed: 535-5.7.8 Username and Password not accepted. Learn more at
535 5.7.8 https://support.google.com/mail/?p=BadCredentials d6sm332684pjh.5 – gsmtp
2020-06-09 06:25:56 SMTP Error: Could not authenticate.
2020-06-09 06:25:56 CLIENT -> SERVER: QUIT
2020-06-09 06:25:57 SERVER -> CLIENT: 221 2.0.0 closing connection d6sm332684pjh.5 – gsmtp
2020-06-09 06:25:57 Connection: closed
2020-06-09 06:25:57 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Sir, I have installed Moodle 3.6.10 (Build: 20200511) Version 2018120310. and also set up gmail in this version as you metioned in your video. But when i am login with forgot password, everything is ok with message "If you supplied a correct username or email address then an email should have been sent to you.
It contains easy instructions to confirm and complete this password change. If you continue to have difficulty, please contact the site administrator."
But there is no any mail receiving in the mentioned email during the forgot password windows. What should be the problem actually? plz help me
Thank you! I was able to set-up outgoing email in Moodle 3.8 🙂
If you supplied a correct username or email address then an email should have been sent to you.
It contains easy instructions to confirm and complete this password change. If you continue to have difficulty, please contact the site administrator.
Thanks for the video! Helped me a lot!
were can i find the badge video?
Thank you very much; it worked perfectly with moodle 3.8
Hi,
Iam using moodle 3.7 version , self email based registration is not working
configure completed and still showing the error
Error is :
Tried to send you an email but failed!
More information about this error
Thank you so much. It looked like hard but after watching this video I understand that it is much easier like setting another email account.
Hello I'm getting error at moodle 3.7 ,"Your site couldn't communicate with your mail server. Please check your outgoing mail configuration".
Sometimes it doesn't work because gmail block access to "not secure applications". To solve the problem go to your Account Google > Security and "allow not secure applications". Bye
Tried this with my Moodle site, but I am still getting an error "Unable to send email" – any tips?
Thanks
Hi ,
Not able to find email once clicked on Message out
Hi, great video! Did everything but not working for me… seems to be a SMTP Error: Could not authenticate. Any ideas what I should try next? Any help would be awesome thank you! Here's the full log…
2018-09-03 04:58:41 Connection: opening to ssl://smtp.gmail.com:465, timeout=300, options=array()
2018-09-03 04:58:41 Connection: opened
2018-09-03 04:58:41 SERVER -> CLIENT: 220 smtp.gmail.com ESMTP v10-v6sm11692778qtv.77 – gsmtp
2018-09-03 04:58:41 CLIENT -> SERVER: EHLO new-server-c08ea1.bitnamiapp.com
2018-09-03 04:58:41 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [34.224.238.119]
250-SIZE 35882577
250-8BITMIME
250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-CHUNKING
250 SMTPUTF8
2018-09-03 04:58:41 CLIENT -> SERVER: AUTH LOGIN
2018-09-03 04:58:41 SERVER -> CLIENT: 334 VXNlcm5hbWU6
2018-09-03 04:58:41 CLIENT -> SERVER: bWF0dGpvYm1hdHRAZ21haWwuY29t
2018-09-03 04:58:41 SERVER -> CLIENT: 334 UGFzc3dvcmQ6
2018-09-03 04:58:41 CLIENT -> SERVER: TWVnYWxhZG9uMzE0
2018-09-03 04:58:41 SERVER -> CLIENT: 534-5.7.14 Please log in via
534-5.7.14 your web browser and then try again.
534-5.7.14 Learn more at
534 5.7.14 https://support.google.com/mail/answer/78754 v10-v6sm11692778qtv.77 – gsmtp
2018-09-03 04:58:41 SMTP ERROR: Password command failed: 534-5.7.14 Please log in via
534-5.7.14 your web browser and then try again.
534-5.7.14 Learn more at
534 5.7.14 https://support.google.com/mail/answer/78754 v10-v6sm11692778qtv.77 – gsmtp
2018-09-03 04:58:41 SMTP Error: Could not authenticate.
2018-09-03 04:58:41 CLIENT -> SERVER: QUIT
2018-09-03 04:58:41 SERVER -> CLIENT: 221 2.0.0 closing connection v10-v6sm11692778qtv.77 – gsmtp
2018-09-03 04:58:41 Connection: closed
2018-09-03 04:58:41 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Moodle 3.5: Dashboard/Site administration/Server/Email/Outgoing mail configuration
How to make live tv app with mit with links that expire after 24 hrs