Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CDONTS help - can't get it to work

Status
Not open for further replies.

SSJpn

Technical User
Oct 7, 2002
259
US
Hi, here is my script

<%
On Error resume Next
Dim TBdy
Dim MyCDO
CR = Chr(13)
Set MyCDO = Server.CreateObject(&quot;CDONTS.NewMail&quot;)
If IsObject (MyCDO) Then
MyCDO.From = &quot;mail@mail.com&quot;
MyCDO.To = &quot;myemail@mail.com&quot;
MyCDO.Subject = &quot;Subject of the message&quot;
TBdy = &quot;test&quot;
MyCDO.Body = TBdy
MyCDO.Send
Set MyCDO = nothing
Response.Write(&quot;Message sent&quot;)
Else
Response.Write(&quot;Message not sent&quot;)
End If
%>

After the page loads I get the &quot;Message sent&quot; text so I would think it sent the mail but when I check my mailbox...nothing.

Why?

Im running Win2000 with all IIS components installed.
Do I need to configure the SMTP server at all?
 
I found them here: &quot;C:\Inetpub\mailroot\Queue&quot;

how do I get them to actually get sent? and not just queued?

thanks,

ssjpn
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top