开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜