mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 03:41:05 -05:00
Docs: update multiple backend example
get_connection kwargs example was no longer valid with switch to SendGrid v3 API.
This commit is contained in:
@@ -32,11 +32,11 @@ but send admin emails directly through an SMTP server:
|
|||||||
connection=sendgrid_backend)
|
connection=sendgrid_backend)
|
||||||
|
|
||||||
# You can override settings.py settings with kwargs to get_connection.
|
# You can override settings.py settings with kwargs to get_connection.
|
||||||
# This example supplies credentials to use a SendGrid subuser acccount:
|
# This example supplies credentials for a different Mailgun sub-acccount:
|
||||||
alt_sendgrid_backend = get_connection('anymail.backends.sendgrid.EmailBackend',
|
alt_mailgun_backend = get_connection('anymail.backends.mailgun.EmailBackend',
|
||||||
username='marketing_subuser', password='abc123')
|
api_key=MAILGUN_API_KEY_FOR_MARKETING)
|
||||||
send_mail("Here's that info", "you wanted", "marketing@example.com", ["prospect@example.com"],
|
send_mail("Here's that info", "you wanted", "info@marketing.example.com", ["prospect@example.org"],
|
||||||
connection=alt_sendgrid_backend)
|
connection=alt_mailgun_backend)
|
||||||
|
|
||||||
|
|
||||||
You can supply a different connection to Django's
|
You can supply a different connection to Django's
|
||||||
|
|||||||
Reference in New Issue
Block a user