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")
|
base = MIMEText(body, "plain", "utf-8")
|
||||||
|
|
||||||
if attach:
|
if attach:
|
||||||
mixed = MIMEMultipart("mixed")
|
mixed = MIMEMultipart("related")
|
||||||
mixed.attach(base)
|
mixed.attach(base)
|
||||||
# Now store our attachments
|
# Now store our attachments
|
||||||
for no, attachment in enumerate(attach, start=1):
|
for no, attachment in enumerate(attach, start=1):
|
||||||
|
@ -1117,6 +1117,10 @@ class NotifyEmail(NotifyBase):
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
mixed.attach(app)
|
mixed.attach(app)
|
||||||
|
app.add_header(
|
||||||
|
'Content-ID',
|
||||||
|
'<{}>'.format(Header(filename, 'utf-8')),
|
||||||
|
)
|
||||||
base = mixed
|
base = mixed
|
||||||
|
|
||||||
if pgp:
|
if pgp:
|
||||||
|
|
Loading…
Reference in New Issue