Content SMTP settings

Here are the settings to use in if you want to capture all emails sent from Moodle to a sandbox area (e.g. in test and development environments):

$CFG->smtphosts = '';
$CFG->smtpsecure = 'tls';
$CFG->smtpuser = '<username>';
$CFG->smtppass = '<password>';

You can also change these in under Site administration > Server > Email > Outgoing mail configuration.

To find your username and password visit your inbox, edit the settings (settings cog) and show your credentials.

No Comments
Back to top