Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notifications : Réessayer d’envoyer les emails lorsque Mailjet indique un problème #4115

Merged
merged 1 commit into from
May 23, 2024

Conversation

francoisfreitag
Copy link
Contributor

🤔 Pourquoi ?

Éviter de perdre des emails, ce qui peut-être très gênant pour les utilisateurs.

🍰 Comment ?

https://anymail.dev/en/stable/sending/django_email/#refused-recipients
https://anymail.dev/en/stable/sending/anymail_additions/#anymail.message.AnymailStatus

Copy link

1 similar comment
Copy link

tests/utils/test_emails.py Outdated Show resolved Hide resolved
Before this commit, emails that couldn’t be sent were simply discarded,
because the code didn’t check the status from anymail.

Anymail exposes a status for each recipient of an email, raising many
questions on the expected behavior should one fail to be delivered out
of multiple recipients.

As a first step, simply trust Mailjet API Status field.

https://anymail.dev/en/stable/sending/django_email/#refused-recipients
https://anymail.dev/en/stable/sending/anymail_additions/#anymail.message.AnymailStatus
@francoisfreitag francoisfreitag added this pull request to the merge queue May 23, 2024
Merged via the queue into master with commit 8ae4175 May 23, 2024
11 checks passed
@francoisfreitag francoisfreitag deleted the ff/resend-email branch May 23, 2024 06:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants