-
-
Notifications
You must be signed in to change notification settings - Fork 206
Description
As suggested in #137 and #210, it would be really great to allow for handling of email delivery notifications.
It would probably be ideal to have a structure that is generic enough to allow both status reports from delivery services as well as catching per-message exceptions from the mail delivery agent (they are currently just logged, see https://github.com/dokterbob/django-newsletter/blob/master/newsletter/models.py#L644).
Ideally, we would use/soft-depend on an external package that provides a standard Django email interface but abstracts status notification of different SMTP providers (SES, Sendgrid, Postmark, ...). Then, we could extend the admin to display aggregate and detailed statistics per subscription and per submission.
I guess django-anymail could do this, see #213.
TODO: Confirm whether django-anymail can in fact do this, in which case only the integration of reporting data and setting headers would need to be done.