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

网络编程 2021-07-05 11:26www.168986.cn编程入门

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

<%

Option Explicit

Dim objMail

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

 objMail.From = "liyanbing@163. "

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

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

 objMail.To = "wuxiaotao@263."

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

 objMail.Send

 Response.write("Mail was Sent") 

set objMail = nothing

%>

 

 

[1]

Copyright © 2016-2025 www.168986.cn 狼蚁网络 版权所有 Power by