How to embed Images in a powershell email using MailMessage

后端 未结 1 720
死守一世寂寞
死守一世寂寞 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: where "xyz" is the value of the Content-ID MIME attribute on the attachment MIME part.

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