emencia / emencia-django-newsletter

An app for sending newsletter by email to a contact list.
189 stars 72 forks source link

Error when sending via Amazon SES SMTP #61

Open xaralis opened 12 years ago

xaralis commented 12 years ago

There is problem with sending via Amazon's SMTP. The thing is that when you try to send to an address which is blacklisted (and that unfortunately happens from time to time), it is not reported as SMTPRecipientsRefused. Instead, it is raised as normal exception with a following string in it's message: "Address blacklisted".

It would be nice if mailer could handle this since it effectively prevents the newsletter to be marked as "sent". Error statuses are not considered final and mailer tries to send it again and again with the same result.