From c56b1203ffee0313d664cef3e31a9033fcef399a Mon Sep 17 00:00:00 2001 From: David Logie Date: Wed, 30 Jan 2019 18:56:23 +0000 Subject: [PATCH] Use 'plain' instead of 'text' for mime subtype. Also remove manually set headers as they're not required. Fixes #41. --- apprise/plugins/NotifyEmail.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apprise/plugins/NotifyEmail.py b/apprise/plugins/NotifyEmail.py index 4b7f618b..82ff35d5 100644 --- a/apprise/plugins/NotifyEmail.py +++ b/apprise/plugins/NotifyEmail.py @@ -352,11 +352,9 @@ class NotifyEmail(NotifyBase): # Prepare Email Message if self.notify_format == NotifyFormat.HTML: email = MIMEText(body, 'html') - email['Content-Type'] = 'text/html' else: - email = MIMEText(body, 'text') - email['Content-Type'] = 'text/plain' + email = MIMEText(body, 'plain') email['Subject'] = title email['From'] = '%s <%s>' % (from_name, self.from_addr)