Email HTML document, embedding images using c#

后端 未结 2 1476
野性不改
野性不改 2021-02-01 00:01

I need to send an email as a string in HTML format that has images embedded in it. I tried converting my images into base64 but it does not work.

The email h

2条回答
  •  攒了一身酷
    2021-02-01 00:18

    You were right about converting to base64, but it is not enough to embed it (there would be no way for the client to distinguish base64 to plain text), you need to format it a bit.

    Check out Buhake's answer, it covers very well the problem in general (you should be able to take it from there): How to embed images in email

提交回复
热议问题