Docs: update multiple backend example

get_connection kwargs example was no longer
valid with switch to SendGrid v3 API.
This commit is contained in:
medmunds
2017-01-22 10:35:56 -08:00
parent 56d2b53c2b
commit 33fdd0fb49

View File

@@ -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