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.

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

供其他搜索者参考:如果您使用 Amazon SNS 来跟踪 Amazon SES 邮件,可以添加一个自定义邮件头,以指定触发 SNS 主题的配置集

X-SES-CONFIGURATION-SET: ConfigSetName

其中 ConfigSetName 是配置集的名称。

这对我来说似乎已经生效了。我计划让 SNS 将来自我们网站不同部分的 SES 日志统一发送到一处。

对于想知道如何设置自定义邮件标题的用户,方法如下。

  1. 前往您的 设置面板 > > 邮件,或使用以下链接:
    https://forums.example.com/admin/site_settings/category/email,请将域名替换为您自己的域名。

  2. 搜索 email custom headers,然后设置您自己的内容。就这么简单!