编程语言

img Brookes

Jmail发送附件

发表于2004/10/28 13:53:00  1764人阅读

分类: ASP.Net

 Jmail发送附件:

jmail.Body="this is a file from jmail using c# asp.net";

jmail.AddAttachment(Server.MapPath("01.jpg"),false,"image/jpg");

发送HTML

jmail.HTMLBody="<hr>this is html<br>";

如果HTML内容中含有图像等连接,可以:

1

jmail.HTMLBody="<hr>this is html<br><img src=http://www.image.com/img.gif'>";

2

string cid=jmail.AddAttachment(Server.MapPath("01.jpg"),true,"image/jpg");

jmail.HTMLBody="<hr>this is html<br><img src='cid:"+cid+"'>";

阅读全文
0 0

相关文章推荐

img
取 消
img