I'm trying to implement django-anymail with my site, and am having trouble.
Using these settings:
ANYMAIL = {
"MAILGUN_API_KEY": "key-hahahahahahahahhaha... no",
}
EMAIL_BACKEND = "anymail.backends.mailgun.MailgunBackend"
DEFAULT_FROM_EMAIL = "account-recovery@mg.mycooldomain.com"
This works fine:
send_mail(
"Test it!",
"A new user [%s] has signed up" % (username),
"Accounts <account-creation@mg.mycooldomain.com>",
["my_email@mycooldomain.com",]
)
The mail sends, it shows up in the mailgun logs, all is well.
But trying to use the in-built django registration password reset doesn't do anything.
The logs show no errors, all the templates are in the right place, it says the password reset worked but no emails show up in my inbox, nothing in the mailgun logs and not even anything in the spam box.
No emails show up at all. How can I make this work?
edit:
Also this works, but still no recovery:
from django.core.mail.message import EmailMessage
EmailMessage('hello','hello',recipients="my_email@gmail.com").send(False)