From 33fdd0fb49a16dd9515158f950bb9be528e10074 Mon Sep 17 00:00:00 2001 From: medmunds Date: Sun, 22 Jan 2017 10:35:56 -0800 Subject: [PATCH] Docs: update multiple backend example get_connection kwargs example was no longer valid with switch to SendGrid v3 API. --- docs/tips/multiple_backends.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/tips/multiple_backends.rst b/docs/tips/multiple_backends.rst index 71c9ef5..458818f 100644 --- a/docs/tips/multiple_backends.rst +++ b/docs/tips/multiple_backends.rst @@ -32,11 +32,11 @@ but send admin emails directly through an SMTP server: connection=sendgrid_backend) # You can override settings.py settings with kwargs to get_connection. - # This example supplies credentials to use a SendGrid subuser acccount: - alt_sendgrid_backend = get_connection('anymail.backends.sendgrid.EmailBackend', - username='marketing_subuser', password='abc123') - send_mail("Here's that info", "you wanted", "marketing@example.com", ["prospect@example.com"], - connection=alt_sendgrid_backend) + # This example supplies credentials for a different Mailgun sub-acccount: + alt_mailgun_backend = get_connection('anymail.backends.mailgun.EmailBackend', + api_key=MAILGUN_API_KEY_FOR_MARKETING) + send_mail("Here's that info", "you wanted", "info@marketing.example.com", ["prospect@example.org"], + connection=alt_mailgun_backend) You can supply a different connection to Django's