Posted

in

, ,

by

Tags:


Moodle, SMTP, GMail and App passwords

Configuring outgoing email in Moodle via GMail’s SMTP servers

I have to write it down because I will surely forget it.

The problem

I want to enable email sending from the Moodle server via Gmail / Google SMTP server.

If I enter Google Account credentials to Moodle’s SMTP configuration, it doesn’t work.

Google Account config

After some googling [Moodle Wiki] I found I have to create ‘App password’ for Moodle in my Google Account settings:

  1. Enable 2FA
  2. Go to your myaccount.google.com
  3. Enter ‘App pass’ to search field
  4. Enter App name and click ‘create’. Copy the password, you will need it in Moodle SMTP settings
screenshot of google account / app password config screen

Moodle SMTP config

  1. Check docs: [GMail SMTP with Moodle]
  2. Enter the following settings (paste the previously created pass to SMTP password field)
  3. Click ‘Test outgoing mail configuration’ on the same page and observe recipient mailbox.
screenshot of Moodle / Server / SMTP config screen

That’s it, the outgoing email should arrive shortly.

Tags:

If you’re reading this on fediverse and the layout (embedded pics) is off or missing, here’s the link to the original blog post.



Comments

Leave a Reply

Your email address will not be published. Required fields are marked *