开发者

System.Net.Mail.MailMessage, Adding an image to a mail message

开发者 https://www.devze.com 2023-01-21 01:31 出处:网络
I开发者_如何学运维 need to add images to a mail message and need them to be place at a specific point. Nothing too fancy just after some text but before some more text.

I开发者_如何学运维 need to add images to a mail message and need them to be place at a specific point. Nothing too fancy just after some text but before some more text. Is this possible?? Thank you!


Use HTML email and link the image to a external resource. There are ways to actually embed, but their compatibility is varied at best.


You'll have to create a html message with MIME headers. Then you could either use an image from some webserver (which many Email-clients won't display without user intervention) or add the image as attachement to the mail-

0

精彩评论

暂无评论...
验证码 换一张
取 消