如何用ASP发送带附件的邮件?
发布时间:2016-12-29 来源:查字典编辑
摘要:如何用ASP发送带附件的邮件?[1]
如何用ASP发送带附件的邮件?
<%
Option Explicit
Dim objMail
Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.From = "liyanbing@163.net "
objMail.Subject = "闪亮日子之星河影动"
objMail.AttachFile("s:flashdaysimageswin.jpg")
objMail.To = "wuxiaotao@263.net"
objMail.body = "我们一定要解放台湾!"
objMail.Send
Response.write("Mail was Sent")
set objMail = nothing
%>
[1]