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

DONTS.NewMail doesn't work

Status
Not open for further replies.

Beesknees

Programmer
Feb 27, 2001
95
GB
I am trying to use the code as below. I am trying to test it out by sending an email to myself. I don't receive the email. What could be wrong?

Set Mail = Server.CreateObject("CDONTS.NewMail")
Mail.From="markbeeson@hotmail.com"
Mail.To = "markbeeson@hotmail.com"
Mail.Subject = "From ASP Createobject function"
Mail.Body = "From CDONTS"
Mail.Send

Thanks.
 
do you get any errors? do you have CDONTS installed on your server?
 
Get no errors, from the ASP code. did if err.number and all that. What I did find is when I looked in inetpub/mailroot/queue I found a whole load of eml and rtr files. The contents of the eml files were what I was intenidng to send and the contents of one rtr file was:

Connection to mc7.law13.hotmail.com. with Ip Address 65.54.232.7 failed from turkey.bird.com-10.1.1.28
markbeeson@hotmail.com
Server received Winsock error Host is unreachable.

I have made sure the cdonts.dll is there and registered.
Any ideas?


 
Mark,

Are you sending to valid email addresses ?

Is the SMTP server turned on ?

Do you have a fire wall that might prevent mail from being sent by the SMTP server ?

Usually the problem lies in one of those three if your mail is making it to the queue folder.

ToddWW
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top