请教jmail收附件的一个问题
先给大家发一段jmail发送邮件附件的程序:
Set jmail = Server.CreateObject("JMail.Message")
jmail.AddRecipient "myRecipient@hisdomain.com", "Mr.Example"
jmail.From = "me@mydomain.com"
jmail.Subject = "Here's some graphics!"
jmail.Body = "A nice picture if you can read HTML-mail."
' The return value of AddAttachment is used as a
' reference to the image in the HTMLBody.
contentId = jmail.AddAttachment("c:\myCoolPicture.gif",true)
' 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>"
' But as not all mailreaders are capable of showing HTML emails
' we will also add a standard text body
jmail.Body = "Too bad you can't read HTML-mail."
jmail.appendText " There would have been a nice picture for you"
jmail.Send( "mailserver.mydomain.com" )
%>
</BODY>
</HTML>
注意程序中的红色标记的语句!!!
现在问题是:是否能在一个html网页中显示该红色标记的附件
设该asp文件名为:show.asp
该文件连接pop3服务器和读取该邮件的代码在此省略,该邮件的对象为msg只写一条语句:
〈p align="center"> <%=msg.HTMLbody%> </p>
等价于:
<p align="center"> <html> <body> <font color="red">Hi, here is a nice picture: </font> <br> <img src="cid: contentId"> <br> <br> good one huh? </body> </html> </p>
问能否在此asp网页中显示该内嵌的附件!!!