mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 11:51:05 -05:00
No, really. Now it works with standard emails.
This commit is contained in:
@@ -78,8 +78,10 @@ class DjrillBackend(BaseEmailBackend):
|
|||||||
|
|
||||||
self.msg_dict = self._build_standard_message_dict(message)
|
self.msg_dict = self._build_standard_message_dict(message)
|
||||||
|
|
||||||
if message.alternative_subtype == "mandrill" and message.alternatives:
|
if getattr(message, "alternative_subtype", None):
|
||||||
self._add_alternatives(message)
|
if message.alternative_subtype == "mandrill":
|
||||||
|
if message.alternatives:
|
||||||
|
self._add_alternatives(message)
|
||||||
|
|
||||||
djrill_it = requests.post(self.api_action, data=json.dumps({
|
djrill_it = requests.post(self.api_action, data=json.dumps({
|
||||||
"key": self.api_key,
|
"key": self.api_key,
|
||||||
|
|||||||
Reference in New Issue
Block a user