p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

proasp_codeclinic thread: CDONT to send mail


Message #1 by balachandar r <rbchandar@y...> on Mon, 24 Sep 2001 02:25:10 -0700 (PDT)
I am working in WindowsNT Server & Win NT 4.0 Option
pack. I am using CDONT to send mail. I have net
connection in my system. There is no error in asp page
but still I couldn't send mail using the following
procedure. Can anyone help me to make it work?
Thanks in advance.


SUB sendMail(fromWho1, toWho1, Subject1, Body1)
	DIM myMail
	SET myMail = Server.CreateObject("CDONTS.Newmail")
	myMail.From = fromWho1
	myMail.To = toWho1
	myMail.Subject = Subject1
	myMail.Body = Body1
	myMail.Send
	SET myMail = Nothing
END SUB


I get the following error in Inetpub\Mailroot\Badmail
folder where info@f... is the myMail.From. May
I know what causes the following error?


------Transcript of session follows -------
Connection to fanestra.com failed. No Ip address found
from dev_server-10.0.0.5
info@f...
Server received Winsock error Host not found.

  Return to Index