Jmail发送附件

作者:网络 来源:佚名 更新时间:2008-02-05 18:18:20 点击:
用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=/uploadpic/2007-2/200725181820218.gif'>";

2)

string cid=jmail.addattachment(server.mappath("01.jpg"),true,"image/jpg");

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


商业源码热门下载www.html.org.cn