Commit f1952915 authored by Romain Courteaud's avatar Romain Courteaud

Add Content-ID header in attachment.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24191 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8c18e991
...@@ -166,6 +166,8 @@ def buildEmailMessage(from_url, to_url, msg=None, ...@@ -166,6 +166,8 @@ def buildEmailMessage(from_url, to_url, msg=None,
part.add_header('Content-Disposition', part.add_header('Content-Disposition',
'attachment; filename=%s' % attachment_name) 'attachment; filename=%s' % attachment_name)
part.add_header('Content-ID',
'%s' % attachment_name)
message.attach(part) message.attach(part)
return message return message
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment