Skip to content

How to add attachment's headers #34

Description

@Candidate48

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions