作者在 2006-06-18 04:36:00 发布以下内容
请问如何用ASP发送带附件的邮件?
见下列代码:
<%
Option Explicit
Dim objMail
Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.From = "isable55@126.com "
objMail.Subject = "闪亮日子之精彩春风"
objMail.AttachFile("s:\flashdays\images\win.jpg")
objMail.To = "miaoangel011355@126.com"
objMail.Body = "我们一定要解放台湾!"
objMail.Send
Response.write("Mail was Sent")
set objMail = nothing
%>