我试图通过Coherence.Mailer发送确认电子邮件。但由于某种原因,它实际上不会发送我只能在本地控制台中看到它的电子邮件。
config :coherence,
user_schema: Statcasters.Coherence.User,
repo: Statcasters.Repo,
module: Statcasters,
web_module: StatcastersWeb,
router: StatcastersWeb.Router,
messages_backend: StatcastersWeb.Coherence.Messages,
logged_out_url: "/",
email_from_name: "Statcasters",
email_from_email: "my@email.com",
opts: [:authenticatable, :recoverable, :lockable, :trackable, :unlockable_with_token, :confirmable, :registerable]
config :coherence, StatcastersWeb.Coherence.Mailer,
adapter: Swoosh.Adapters.Sendgrid,
api_key: {:system, "API_KEY"}
我使用带有Coherence的Swoosh适配器,根据文档,一切似乎都设置好了,但显然我错过了一些东西。
同样,问题是本地发送的电子邮件实际上并没有发送给预期的收件人。任何帮助都将不胜感激。
答案 0 :(得分:0)
您的问题与https://github.com/smpallen99/coherence/issues/161
类似您是否可以尝试对API_KEY进行硬编码并进行测试,稍后检查您是否能够访问API_KEY