From 5ffae608ff2846191faeae93b3973f4efcb26a59 Mon Sep 17 00:00:00 2001 From: Thomas Oettli Date: Wed, 28 Aug 2019 19:22:59 +0200 Subject: [PATCH] change email content type to multipart/related --- pyquarantine/notifications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyquarantine/notifications.py b/pyquarantine/notifications.py index 278cc4f..6807f15 100644 --- a/pyquarantine/notifications.py +++ b/pyquarantine/notifications.py @@ -289,7 +289,7 @@ class EMailNotification(BaseNotification): # parse template htmltext = self.template.format_map(variables) - msg = MIMEMultipart('alternative') + msg = MIMEMultipart('related') msg["Subject"] = self.subject.format_map(variables) msg["From"] = "<{}>".format(self.from_header.format_map(variables)) msg["To"] = "<{}>".format(recipient)