ui / django-post_office

A Django app that allows you to send email asynchronously in Django. Supports HTML email, database backed templates and logging.
MIT License
1.01k stars 271 forks source link

Django Post Office Default Backend with Mailjet #396

Open joyouscob opened 2 years ago

joyouscob commented 2 years ago

I am new raising issues, dont know if this is the appropriate way. I have django post office setup and working fine and decided to use mailjet backend, from the documentation, i saw:

POST_OFFICE = { 'BACKENDS': { 'default': 'anymail.backends.mailjet.EmailBackend', } }

They work independently, but when i use them together (using mailjet as default post office backend), the emails are not delivered.

EMAIL_BACKEND = 'post_office.EmailBackend' EMAIL_HOST = 'in-v3.mailjet.com' EMAIL_HOST_USER = os.environ.get('EMAIL_HOST_USER') EMAIL_HOST_PASSWORD = os.environ.get('EMAIL_HOST_PASSWORD') EMAIL_USE_TLS = True EMAIL_PORT = 587 DEFAULT_FROM_EMAIL = 'default@email.com' POST_OFFICE = { 'BACKENDS': { 'default': 'anymail.backends.mailjet.EmailBackend', } } ANYMAIL = { "MAILJET_API_KEY": "key", "MAILJET_SECRET_KEY": "secret", }

Please help

domdinicola commented 3 weeks ago

did you manage to make it work? @joyouscob