Configure Email Settings in Moodle
Moodle sends notifications, forum digests, and password resets via email. You can configure it to use your server's built-in PHP mail or an external SMTP relay.
Prerequisites
- Admin access to the Moodle dashboard
- SMTP server credentials (if using an external relay)
Steps
Go to Site administration > Server > Email > Outgoing mail configuration.
- SMTP hosts: Enter your SMTP server (e.g.
smtp.gmail.com:587). Leave blank to use PHP's built-in mail function. - SMTP security: Choose TLS or SSL as required by your provider.
- SMTP username / password: Enter the credentials for authentication.
- No-reply address: Set the From address for Moodle emails.
Verify
Use the Test outgoing mail configuration button at the bottom of the page to send a test email.
Notes
- Most SMTP servers use port 587 (STARTTLS) or 465 (SSL).
- For high-volume Moodle sites, consider a transactional email service (SendGrid, SES, Mailgun) to avoid hitting SMTP rate limits.
- If emails go to spam, configure SPF and DKIM records for your sending domain.