From c68bfdeded6e2acf6b6bdc871f7d5fdc33eb18c6 Mon Sep 17 00:00:00 2001 From: icegreg Date: Wed, 15 Jul 2015 17:11:24 +0300 Subject: [PATCH] rollback auth_credentials --- dbmail/backends/mail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbmail/backends/mail.py b/dbmail/backends/mail.py index afab24e..8f9ed82 100644 --- a/dbmail/backends/mail.py +++ b/dbmail/backends/mail.py @@ -70,7 +70,7 @@ def _insert_mailer_identification_head(self): def _get_connection(self): if self._template.auth_credentials: return self._kwargs.pop('connection', None) or get_connection( - **self._template.from_email.get_auth()) + **self._template.auth_credentials) return self._kwargs.pop('connection', None) def _get_template(self):