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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CDONTS not working on Win2K Professional

Status
Not open for further replies.

modfather

MIS
Feb 15, 2000
75
US
Can someone please tell me what I'm doing wrong? A bit of warning: I'm a bit of a newb. I have IIS 5.0 running on my Win2K Professional PC. I have the "Default SMTP Virtual Server" running. I am trying to run the following code:
<%
Set NewMailObj = CreateObject(&quot;CDONTS.NewMail&quot;)
recipStr = &quot;your@email.com&quot;
NewMailObj.Send &quot;my@email.com&quot;, recipStr, &quot;Check it out!&quot;, &quot;Here's some email for you&quot;
Set NewMailObj = Nothing
%>

When I put this on my web server, it runs great and I get my email. Is it because they have Exchange on that server? When I try to run it from my own workstation: the email message just sits in the &quot;Queue&quot; directory. Is there something I'm missing? I've left the properties in the SMTP Virtual Server all default. I'm a bit confused... By the way, I get no error messages or anything. My email just sits.

Thanks for any help.
Steve
 
Anyone?

I should clarify the statement &quot;when I put it on my web server, it runs great...&quot; My webserver is a provided by my ISP. When I try to run it on my personal machine, with IIS installed, it doesn't work...

Thanks very much in advance for any help.
Steve
 
I was tried before for CDONTS on my Win2k Prof machine, it works fine also. At first it will queue all the emails but once I connected to the internet, all the emails get sent out and I received them from my own email account (because I sent to myself)
 
I'm kinda confused as well.

do you have a smtp service installed on your win2K pro?

Like exchange, merak, etc.? &quot;Damn the torpedoes, full speed ahead!&quot;

-Adm. James Farragut

Stuart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top