三十三块

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年10月30日

摘要: 一般通过代码向邮件发送图片。图片的链接是放在Body里面的。mail.Body="<html><img src='img路径'></html>"通过这种方式发送到outlook的图片需要你自己的Outlook中右键点击show picture 才能显示出来。而下面这种方法是直接显示在Outlook中的。MailMessage mail=new MailMessage();string bodyContent="<html><img src='cid:imgId'></ 阅读全文
posted @ 2012-10-30 10:45 三十三块 阅读(884) 评论(0) 推荐(0) 编辑