Display an attached image on the HTML message

后端 未结 1 869
迷失自我
迷失自我 2021-02-06 17:43

I have develop a function in PYTHON that sends emails with one .doc attachment and one image attachment (.jpg)

The message of the email is HTML.

I want to know h

相关标签:
1条回答
  • 2021-02-06 17:58

    In your html, use img tags with a src of:

    cid:<filename used in your Content-Disposition header>
    

    So, for instance:

    <p>
    <img src="cid:image1.jpeg"/>
    </p>
    
    0 讨论(0)
提交回复
热议问题