mirror of https://github.com/caronc/apprise
Merge 59b8c7a6b8
into 1d9e1e5f19
commit
c24a763b2a
|
@ -1078,7 +1078,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):
|
||||
|
@ -1117,6 +1117,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