I want to send html_body with image src .
html_body=u'<html><body><h1>Hello</h1><p><img src="cid:screenshot.png"></p></body></html>'
use src="cid:screenshot.png" I need to add a image attachment:
envelope.add_attachment(r'D:\XXX\screenshot.png')
and I need add a header ('Content-ID', ‘screenshot.png’) to this attachment.
but I don't konw how to add attachment's headers in envelopes.
I want to send html_body with image src .
html_body=u'<html><body><h1>Hello</h1><p><img src="cid:screenshot.png"></p></body></html>'use src="cid:screenshot.png" I need to add a image attachment:
envelope.add_attachment(r'D:\XXX\screenshot.png')and I need add a header ('Content-ID', ‘screenshot.png’) to this attachment.
but I don't konw how to add attachment's headers in envelopes.