mirror of
https://github.com/caronc/apprise.git
synced 2024-11-21 23:53:23 +01:00
Merge pull request #42 from djl/content_type_fix
NotifyEmail.py / Use 'plain' instead of 'text' for mime subtype; refs #41
This commit is contained in:
commit
ba27267563
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user