How to use Amazon SES for sending emails to users?

Hello All I want to query how to configure and integrate Amazon SES with discourse to use it for sending emails from an verified Amazon SES email.

4 Likes

This is pretty easy to setup, in your app.yml:

  ## TODO: The mailserver this Discourse instance will use
  DISCOURSE_SMTP_ADDRESS: email-smtp.us-east-1.amazonaws.com 
  DISCOURSE_SMTP_PORT: 587                        
  DISCOURSE_SMTP_USER_NAME: CREDIENTIALS
  DISCOURSE_SMTP_PASSWORD: CREDIENTIALSPW
  DISCOURSE_SMTP_ENABLE_START_TLS: true

Worked straight out of the box for me.

Edit:
To apply these changes you will need to run: ./launcher rebuild app

9 Likes

For anyone else searching, if you do use Amazon SNS to track Amazon SES emails, you can add a custom email header to specify the config set that triggers the SNS topic:

X-SES-CONFIGURATION-SET: ConfigSetName

ConfigSetName is the name of the configuration set.

That seems to be working for me. I’m planning to have SNS send all the SES logs from different parts of our sites into one place.

2 Likes

For those who are wondering how to set the custom email header, here it is.

  1. Go to your Settings Panel >> Email or use below link
    https://forums.example.com/admin/site_settings/category/email, you should replace the domain name with your own.

  2. Search for email custom headers, and set your own. That’s it!

3 Likes