diff --git a/entity_emailer/interface.py b/entity_emailer/interface.py index 03d9530..07b58ec 100644 --- a/entity_emailer/interface.py +++ b/entity_emailer/interface.py @@ -94,7 +94,7 @@ def send_unsent_scheduled_emails(cls): for email in emails_to_send: try: # Send mail - connection.send_messages(email.get('message')) + connection.send_messages([email.get('message')]) except Exception as e: cls.save_email_exception(email.get('model'), e) diff --git a/entity_emailer/tests/interface_tests.py b/entity_emailer/tests/interface_tests.py index 3f672cf..1b92a01 100644 --- a/entity_emailer/tests/interface_tests.py +++ b/entity_emailer/tests/interface_tests.py @@ -451,7 +451,7 @@ def test_sends_email_with_specified_from_address(self, render_mock, address_mock EntityEmailerInterface.send_unsent_scheduled_emails() args = mock_connection.return_value.__enter__.return_value.send_messages.call_args - self.assertEqual(args[0][0].from_email, from_address) + self.assertEqual(args[0][0][0].from_email, from_address) @patch('entity_emailer.interface.get_subscribed_email_addresses') @patch.object(Event, 'render', spec_set=True) diff --git a/entity_emailer/version.py b/entity_emailer/version.py index e7c12d2..f593cd5 100644 --- a/entity_emailer/version.py +++ b/entity_emailer/version.py @@ -1 +1 @@ -__version__ = '2.0.3' +__version__ = '2.0.4' diff --git a/release_notes.rst b/release_notes.rst index 3546d95..e508775 100644 --- a/release_notes.rst +++ b/release_notes.rst @@ -1,6 +1,10 @@ Release Notes ============= +v2.0.4 +------ +* Bugfix for updated interface + v2.0.3 ------ * Merging v2 hotfixes