Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_cdo thread: sending email via CDONTS


Message #1 by "David CHin" <david.chin@w...> on Fri, 26 Oct 2001 09:48:44
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

  Return to Index