change email content type to multipart/related

This commit is contained in:
2019-08-28 19:22:59 +02:00
parent b41ae30335
commit 5ffae608ff

View File

@@ -289,7 +289,7 @@ class EMailNotification(BaseNotification):
# parse template # parse template
htmltext = self.template.format_map(variables) htmltext = self.template.format_map(variables)
msg = MIMEMultipart('alternative') msg = MIMEMultipart('related')
msg["Subject"] = self.subject.format_map(variables) msg["Subject"] = self.subject.format_map(variables)
msg["From"] = "<{}>".format(self.from_header.format_map(variables)) msg["From"] = "<{}>".format(self.from_header.format_map(variables))
msg["To"] = "<{}>".format(recipient) msg["To"] = "<{}>".format(recipient)