How to embed Images in a powershell email using MailMessage

后端 未结 1 721
死守一世寂寞
死守一世寂寞 2021-01-28 05:49

I have an email that works from PS. What I have been trying to do is include images embedded in the email (not attachments). Below is what I have so far:

functio         


        
相关标签:
1条回答
  • 2021-01-28 06:26

    You must add images as regular attachments. The HTML body must then reference these attachments though the cid attribute: <img src="cid:xyz"> where "xyz" is the value of the Content-ID MIME attribute on the attachment MIME part.

    0 讨论(0)
提交回复
热议问题