日期:2015/6/28来源: IT猫扑网
其实最关键的就是这句要注释掉
JMail.ContentType = text/html
(为什么要发内嵌的附件图片?因为如果是img src=/uploads/allimg/080527/2317420.jpg))
增加一个嵌入式附件
The return value of AddAttachment is used as a
reference to the image in the HTMLBody.
contentId = JMail.AddAttachment(Server.MapPath(images/email.gif))
Dim contentId
contentId = JMail.AddAttachment(E:\images\email.gif)
只有HTML格式支持嵌入图片附件,我们采用HTML格式的邮件内容
As only HTML formatted emails can contain inline images
we use HTMLBody and appendHTML
JMail.HTMLBody = <html><body><font color=red>Hi, here is a nice picture:</font><br>
JMail.appendHTML <img src=cid: & contentId & >
JMail.appendHTML <br><br> good one huh?</body></html>
如果对方信箱不支持HTML格式邮件,我们仍需要给他一个友善的提示
But as not all mailreaders are capable of showing HTML emails
we will also add a standard text body
JMail.Body = Too bad you cant read HTML-mail.
JMail.appendText There would have been a nice picture for you
JMail.Send( mail.skyhe.com )
JMail.Close()
Set JMail = Nothing
%>
相关文章
相关下载
Dropbox上传附件插件Asp编程78KBv1.1.3 免费版
下载360安全卫士最新版Asp编程82Mv13.1.0.1710 官方正式版
下载瑞星升级保姆升级包Asp编程284KBv3.6.1 绿色版
下载金山毒霸 2011 SP6.0(永久免费)Asp编程8.0M简体中文论坛测试版 [站长推荐]
下载foxmail附件批量导出工具Asp编程197KBv1.0绿色免费版
下载OutlookAttachView(查看Outlook邮件附件)Asp编程126KBv3.0.0 绿色中文版
下载网友评论