如何使用CDONTS?(50分)

  • 主题发起人 主题发起人 hongsen
  • 开始时间 开始时间
H

hongsen

Unregistered / Unconfirmed
GUEST, unregistred user!
本人用CDONTS.NewMail发送邮件,为什么看见它们在C:/Inetpub/mailroot/Queue下没有被发出去?

下面是ASP的代码:

<%
Dim MyBody
Dim MyCDONTSMail
%>

<%

Set MyCDONTSMail = CreateObject("CDONTS.NewMail")
MyCDONTSMail.From= "hongsen@doublebridge.com.cn"
MyCDONTSMail.To= "hongsen@263.net"
MyCDONTSMail.Subject="This is a Test"
MyBody = "Thank you for ordering that stuff" & vbCrLf
MyBody = MyBody & "We appreciate your business" & vbCrLf
MyBody = MyBody & "Your stuff will arrive within 7 business days"
MyCDONTSMail.Body= MyBody
MyCDONTSMail.Send

set MyCDONTSMail=nothing


response.write "send email successfully!"
%>



我们不需要提供用户名和口令吗?
 

Similar threads

后退
顶部