主题:  请用过IIS的CDONTS.NewMail组件的网友帮忙

qjdragon

职务:普通成员
等级:1
金币:0.0
发贴:1
#12002/10/22 17:39:34
我在试用IIS的CDONTS.NewMail组件,但效果不好,test程序如下。
<%
Dim MailObject

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

MailObject.Send "xxx@21cn.com","xxx@hotmail.com","hello","hello"
%>
运行后会在c:\Inetpub\mailroot\Queue 目录下产生一个eml文件,但没有发到指定的地址,不知是smtp没设置好呢,还是iis没设置好,我在网上也找了点文章,但都没解决,请大伙帮帮忙。



5D荣誉版主

职务:普通成员
等级:1
金币:10.0
发贴:271
#22002/10/22 17:55:11
试试这个
Set objMail = CreateObject("CDONTS.Newmail")
sHTML = "test"
objMail.From = "rob@here.com"
objMail.To = "jdr@there.com"
objMail.Body = sHTML
objMail.Send
Set objMail = Nothing



5D荣誉版主

职务:普通成员
等级:1
金币:10.0
发贴:271
#32002/10/23 8:43:14
发出邮件的前提是你的active server连上internet
Assuming that you have a DNS server to resolve the MX and A records, the SMTP server will deliver the mail. If you don't have a local DNS server, don't fear--you can route the messages to a remote SMTP server that's configured to send messages to the Internet. This is often the case in most organizations where you have to use a corporate mail server for all outbound email.