mirror of https://github.com/caronc/apprise
Merge 59b8c7a6b8
into 8dc7ba7bdb
commit
67be4f6bf2
|
@ -1070,7 +1070,7 @@ class NotifyEmail(NotifyBase):
|
|||
base = MIMEText(body, "plain", "utf-8")
|
||||
|
||||
if attach:
|
||||
mixed = MIMEMultipart("mixed")
|
||||
mixed = MIMEMultipart("related")
|
||||
mixed.attach(base)
|
||||
# Now store our attachments
|
||||
for no, attachment in enumerate(attach, start=1):
|
||||
|
@ -1109,6 +1109,10 @@ class NotifyEmail(NotifyBase):
|
|||
),
|
||||
)
|
||||
mixed.attach(app)
|
||||
app.add_header(
|
||||
'Content-ID',
|
||||
'<{}>'.format(Header(filename, 'utf-8')),
|
||||
)
|
||||
base = mixed
|
||||
|
||||
if pgp:
|
||||
|
|
Loading…
Reference in New Issue