Closed amakarudze closed 3 years ago
This error was being caused by a wrong setting for EMAIL_BACKEND in the environment variables. After migrating from Mandrill
which used djrill
for backend to using Sendgrid
, the postactivate
file used by the deploy.sh
script to set environment variables in production still had this setting
export EMAIL_BACKEND="djrill.mail.backends.djrill.DjrillBackend"
The error was fixed by changing to
export EMAIL_BACKEND="sendgrid_backend.SendgridBackend"
No need to use Anymail since the migration to Sendgrid was done. Only settings files were set incorrectly in the environment variables.
Super. That's good work @amakarudze. 👍
Thanks @carltongibson!
Organizers are experiencing server errors when they submit an application. The failure cannot be reproduced locally because emails do not get sent in a local environment. However, trying to send the emails on the server gave the traceback below.
djrill
was a package by Mandrill which is no longer supported for future versions of Django. We therefore need to move toAnymail
to enable sending email via Sendgrid etc and fix this error.