Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_cdo thread: Re: sending email via CDONTS


Message #1 by "Geoff Weinhold" <gweinhold@r...> on Thu, 21 Mar 2002 20:53:36
I'm not sure if you're still having this same problem or not.  I just ran 
into this same problem myself on my IIS 5.0 server using smarthost to 
relay outbound.  Anyways, I compared the Metabase settings for the SMTP 
service with another server that was working and found the "RouteAction" 
field to be the culprit.  Once I set this to '0' everything started 
flowing like it should.

The line should read:

RouteAction                     : (INTEGER) 0

You can query your Metabase with adsutil.vbs from MS like so:

cscript adsutil.vbs enum smtpsvc/1

Then to set that exact field:

cscript adsutil.vbs SET smtpsvc/1/RouteAction "0"

Hope that helps.

Geoff


> Hi, I have searched thru' the FAQ and still not able to find the answer 
to 
> my problem. Maybe you can help me. I have setup a virutal smtp server in 
a 
> machine which also host my IIS5.0 I have another machine which host my 
> Exchange Server 5.5. In my smtp server, I have defined my Exchange 
Server 
> to be the smart host, ie using my Exchange server to relay all internet 
> mails.
> Below is a simple asp code that I attempted to send an email out to a 
> external party.
> 
> <%@LANGUAGE="VBSCRIPT" %>
> <HTML>
> <BODY>
> <%
> 
> 	Set oMail = Server.CreateObject("CDONTS.NewMail")
> 
> 	oMail.To = "yeesoon@s..."
> 
> 	oMail.From = "david.chin@w..."
> 
> 	oMail.Value("Reply-To") = "david.chin@w..."
> 
> 	oMail.Subject = "Tessting"
> 
> 	oMail.Body = "Testing the CDONTS"
> 
> 
> 	oMail.Send
> 	set oMail = nothing
> 
> %>
> </BODY>
> </HTML>
> 
> Instead I found that my mail in the badmail directory of my smtp server 
> machine. When I opened one of the .BDR file, there was an error code of 
> 0xC00402C7.
> 
> Where did I go wrong? Are there any configurations that I need to take 
> note of in Exchange? Pls help...this problem is driving me nuts for the 
> last 3 days.
> 
> tks U
Message #2 by "Fred Botha" <botha@m...> on Fri, 22 Mar 2002 12:45:20
Please can you tell me how to send an email using XP Professional. 
How do I configure IIS?
Fred Botha. 


> I'm not sure if you're still having this same problem or not.  I just 
ran 
i> nto this same problem myself on my IIS 5.0 server using smarthost to 
r> elay outbound.  Anyways, I compared the Metabase settings for the SMTP 
s> ervice with another server that was working and found 
the "RouteAction" 
f> ield to be the culprit.  Once I set this to '0' everything started 
f> lowing like it should.

> The line should read:

> RouteAction                     : (INTEGER) 0

> You can query your Metabase with adsutil.vbs from MS like so:

> cscript adsutil.vbs enum smtpsvc/1

> Then to set that exact field:

> cscript adsutil.vbs SET smtpsvc/1/RouteAction "0"

> Hope that helps.

> Geoff

> 
>>  Hi, I have searched thru' the FAQ and still not able to find the 
answer 
t> o 
>>  my problem. Maybe you can help me. I have setup a virutal smtp server 
in 
a>  
>>  machine which also host my IIS5.0 I have another machine which host 
my 
>>  Exchange Server 5.5. In my smtp server, I have defined my Exchange 
S> erver 
>>  to be the smart host, ie using my Exchange server to relay all 
internet 
>>  mails.
>>  Below is a simple asp code that I attempted to send an email out to a 
>>  external party.
>>  
>>  <%@LANGUAGE="VBSCRIPT" %>
>>  <HTML>
>>  <BODY>
>>  <%
>>  
>>  	Set oMail = Server.CreateObject("CDONTS.NewMail")
>>  
>>  	oMail.To = "yeesoon@s..."
>>  
>>  	oMail.From = "david.chin@w..."
>>  
>>  	oMail.Value("Reply-To") = "david.chin@w..."
>>  
>>  	oMail.Subject = "Tessting"
>>  
>>  	oMail.Body = "Testing the CDONTS"
>>  
>>  
>>  	oMail.Send
>>  	set oMail = nothing
>>  
>>  %>
>>  </BODY>
>>  </HTML>
>>  
>>  Instead I found that my mail in the badmail directory of my smtp 
server 
>>  machine. When I opened one of the .BDR file, there was an error code 
of 
>>  0xC00402C7.
>>  
>>  Where did I go wrong? Are there any configurations that I need to 
take 
>>  note of in Exchange? Pls help...this problem is driving me nuts for 
the 
>>  last 3 days.
>>  
>>  tks U

  Return to Index