Comments (2)
Hmm. I think Anymail does need to re-cast that requests exception as an AnymailRequestsAPIError (in anymail.backends.BaseRequests.post_to_esp). That's required for proper fail_silently handling.
Of course, that'll still leave you with a flurry of (different) exceptions, if you're not using fail_silently.
There are several Django packages that maintain an email queue and robustly retry failed sends at a later time. Anymail should be compatible with most of them (any that let you change their email backend).
- I personally use the old Pinax django-mailer, which runs in Django's DB and works fine at my relatively-small scale. (Also, it seems to be getting maintained again -- yay!).
- Celery is popular for managing any sort of task queues in Django, and there are a bunch of Django email queues based on it.
- I'm sure there are others. (Including some interesting explorations using Django channels.)
Queue-and-resend functionality isn't built into Anymail, because there are different approaches that satisfy different needs, and the other packages cover the tradeoffs well. (Also, Anymail doesn't itself maintain any state or run any async tasks.)
from django-anymail.
Yep! I wouldn't propose a queueing system for Anymail -- edited the issue to clarify that.
This is already being fired from a Celery task where we catch most errors to turn them into a another attempt after a delay. This one bubbled up though since it was new.
from django-anymail.
Related Issues (20)
- Support Brevo inbound
- "Package would be ignored" warnings from setuptools when building package HOT 2
- Sendgrid multiple reply to HOT 1
- Can't lock with poetry HOT 2
- [Inbound] Apple Mail inline attachments not taken into account HOT 5
- Add support to Resend.com HOT 5
- Handlebars variables not substitued in mandrill templates HOT 1
- mailgun api key HOT 2
- Merging/Combine ESP Options get lost/overwritten HOT 2
- parse_address_list: Inability to Parse Email Addresses with Special Characters in Display Name Without Double-Quote Encapsulation HOT 1
- Mailjet Open tracking? HOT 4
- Inaccuracy in documentation about Brevo's behaviour HOT 2
- Feature request: Mailtrap HOT 4
- Resend: confusing ReadTimeout error for incorrect API key
- Add support to Unisender Go HOT 2
- Support Brevo batch sending with merge_data HOT 2
- Add batch sending support for Resend HOT 1
- Mailgun webhooks: AttributeError 'NoneType' object has no attribute 'get' HOT 1
- boto3 sesv2 client does not have method 'send_email'. Check AmazonSESV2SendEmailPayload HOT 4
- Bad UTF-8 "To" header encoding? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-anymail.