mirror of https://github.com/caronc/apprise
Merge 59b8c7a6b8
into 91faed0c6d
commit
391399158b
|
@ -935,7 +935,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):
|
||||||
|
@ -967,6 +967,10 @@ class NotifyEmail(NotifyBase):
|
||||||
Header(filename, 'utf-8')),
|
Header(filename, 'utf-8')),
|
||||||
)
|
)
|
||||||
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