Django Allauth mails stop working when I change my smtp provider (mandrill)

时间:2022-01-28 18:13:32

I started my app with a gmail account, and have recently upgraded to Mandrill. I am not using the API, just changed my smtp settings through env variables.

我使用gmail帐户启动了我的应用程序,最近升级到了Mandrill。我没有使用API​​,只是通过env变量更改了我的smtp设置。

When I add the new mandrill smtp provider, my in-app mails work perfectly, but allauth's mails do not work at all. (I can see they are not rejected or bounced through mandrill's data, they're just not sent).

当我添加新的mandrill smtp提供程序时,我的应用内邮件工作得很好,但allauth的邮件根本不起作用。 (我可以看到他们没有被通过mandrill的数据拒绝或反弹,他们只是没有被发送)。

Any help?

1 个解决方案

#1


0  

Turns out I needed to add DEFAULT_FROM_EMAIL to my settings.py file. I don't understand why it works with a gmail address and not a custom one, but this fixed it.

结果我需要将DEFAULT_FROM_EMAIL添加到我的settings.py文件中。我不明白为什么它适用于gmail地址而不是自定义地址,但这解决了它。

#1


0  

Turns out I needed to add DEFAULT_FROM_EMAIL to my settings.py file. I don't understand why it works with a gmail address and not a custom one, but this fixed it.

结果我需要将DEFAULT_FROM_EMAIL添加到我的settings.py文件中。我不明白为什么它适用于gmail地址而不是自定义地址,但这解决了它。