anymail / django-anymail

Django email backends and webhooks for Amazon SES, Brevo (Sendinblue), MailerSend, Mailgun, Mailjet, Postmark, Postal, Resend, SendGrid, SparkPost, Unisender Go and more
https://anymail.dev
BSD 3-Clause "New" or "Revised" License
1.71k stars 132 forks source link

Support SparkPost EU #100

Closed medmunds closed 6 years ago

medmunds commented 6 years ago

SparkPost has announced SparkPost EU, a version of their service hosted entirely in the European Union. Anymail should add a setting to allow using the EU service as an alternative to the US-based default.

It looks like this just involves pointing the SparkPost API at the EU API endpoint. The sparkpost.SparkPost constructor has an undocumented base_uri parameter that seems to allow this.

The new Anymail setting should probably be SPARKPOST_API_URL (rather than _URI), paralleling similar settings in other backends.

medmunds commented 6 years ago

Released in Anymail 2.1