Jump to content

Manual:$wgSMTP/AWS SES

From mediawiki.org

This page provides an example for setting the $wgSMTP configuration parameter if you would like to use Amazon Web Services Simple Email Service for sending emails by your wiki.

$wgSMTP = [
    'host' => 'tls://email-smtp.us-east-1.amazonaws.com', // provided by AWS SES to you
    'IDHost' => 'email-smtp.us-east-1.amazonaws.com',     // provided by AWS SES to you
    'port' => 465,
    'username' => '************************',             // provided by AWS SES to you
    'password' => '***********************************',  // provided by AWS SES to you
    'auth' => true
];
Note about the "Sandbox" mode

If your AWS SES instance is configured in "Sandbox" mode you should change your settings to configuration parameters $wgPasswordSender and $wgEmergencyContact to an email address that you have verified in the AWS SES console.

If new users register and they are not in the verified list, they will not get the email and you will be limited to 200 emails per day!

Thus make sure that you get out of the "Sandbox" mode once you tested that everything works.