首页 > 学院 > 编程设计 > 正文

如何用ASP发送带附件的邮件?

2020-06-19 13:49:15
字体:
来源:转载
供稿:网友

如何用ASP发送带附件的邮件?

<%

Option Explicit

Dim objMail

 Set objMail = Server.CreateObject("CDONTS.NewMail")

 objMail.From = "liyanbing@163.net "

 objMail.Subject = "闪亮日子之星河影动"

 objMail.AttachFile("s:/flashdays/images/win.jpg")

 objMail.To = "wuxiaotao@263.net"

 objMail.body = "我们一定要解放台湾!"

 objMail.Send

 Response.write("Mail was Sent") 

set objMail = nothing

%>

 

 

[1]

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表