我可以在我的asp发送邮件上嵌入图像吗?

时间:2009-11-19 21:31:54

标签: asp-classic

我有一个拥有旧学校asp的客户。是否可以编辑asp文件以嵌入图像?我只有asp文件,在asp文件中,它有一个像这样的自动响应表单

body = "Dear " & cName & "," & vbcrlf & vbcrlf & "Your request for the " & vehHeader & " (" & FormatCurrency(vehPrice)& ")" & " has been received and will be reviewed promptly." & vbcrlf & "We will contact you shortly to verify your information." & vbcrlf & vbcrlf & "Thank you for using ClassicShowcase.com."
AppSendMail AppSupportMailto, cEMail, "Confirmation of vehicle request...", body
AppReportError "CUBid.asp: Error sending confirmation e-mail."

AppSendMail AppSupportMailto, AppSupportMailto, "Web bid for the " & vehHeader, "Check Administration Center for details."
AppReportError "CUBid.asp: Error sending confirmation e-mail."

我没有VB文件或解决方案文件我如何能够从服务器嵌入图像,因此当用户收到自动回复电子邮件时,他可以查看一些图像

2 个答案:

答案 0 :(得分:2)

是的,当然,如果你使用的应用程序可以在正文中发送HTML,你只需要在正文中添加图像

 <body>
     <h1>Hello World</h1>
     I'm sending you this postcard:
     <img src="http://yourdomain.com/images/yourimage.jpg" alt="postcard" />
 </body>

重要的是:

  • 始终添加图片的完整路径,因为电子邮件将在您的网站外打开

答案 1 :(得分:-1)

爱德华多(爱上这张照片!)是对的。而图像的完整URL至关重要!