mirror of
https://github.com/caronc/apprise.git
synced 2025-03-12 13:59:21 +01:00
Use 'plain' instead of 'text' for mime subtype.
Also remove manually set headers as they're not required. Fixes #41.
This commit is contained in:
parent
2e648eef17
commit
c56b1203ff
@ -352,11 +352,9 @@ class NotifyEmail(NotifyBase):
|
|||||||
# Prepare Email Message
|
# Prepare Email Message
|
||||||
if self.notify_format == NotifyFormat.HTML:
|
if self.notify_format == NotifyFormat.HTML:
|
||||||
email = MIMEText(body, 'html')
|
email = MIMEText(body, 'html')
|
||||||
email['Content-Type'] = 'text/html'
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
email = MIMEText(body, 'text')
|
email = MIMEText(body, 'plain')
|
||||||
email['Content-Type'] = 'text/plain'
|
|
||||||
|
|
||||||
email['Subject'] = title
|
email['Subject'] = title
|
||||||
email['From'] = '%s <%s>' % (from_name, self.from_addr)
|
email['From'] = '%s <%s>' % (from_name, self.from_addr)
|
||||||
|
Loading…
Reference in New Issue
Block a user