用jmail发html格式的内容,为何其中的图片并没有显示?
Set msg = Server.CreateObject("JMail.Message")
msg.silent = false
msg.Logging = true
msg.Charset = "gb2312"
msg.MailServerUserName = "xxxx@yyy.com" '输入smtp服务器验证登陆名 (邮局中任何一个用户的Email地址)
msg.MailServerPassword = "xxxxx" '输入smtp服务器验证密码 (用户Email帐号对应的密码)
msg.From = "a@a.net" '发件人Email
msg.FromName = "aaa" '发件人姓名
msg.AddRecipient "xxxx@yahoo.com.cn" '收件人Email
msg.Subject= "11111111111" '信件主题
cid=msg.addattachment( "H:\我的文档\编程\ASP\程序\chk\mail.jpg",false)
msg.htmlBody="<html>"&vbnewline& _
"<head>"&vbnewline& _
"<meta http-equiv=""Content-Type"" content=""text/html; charset=gb2312"">"&vbnewline& _
"<title>无标题文档</title>"&vbnewline& _
"</head>"&vbnewline& _
""&vbnewline& _
"<body>"&vbnewline& _
"<img src=""cid:"&cid&""" width=""600"" height=""800""></body>"&vbnewline& _
"</html>"
msg.Send("mail.xxxx.com")
邮件能收到,但其中插入有一个图片,却没有显示出来