I am trying to set up cdonts to send an email from asp page. Here is my code:
DIM myMail
SET myMail = Server.CreateObject("CDONTS.Newmail"
myMail.From = "me@mycompany.com"
myMail.To = "me@mycompany.com"
myMail.Subject = "test"
myMail.Body = "body"
myMail.Send()
SET myMail = Nothing
From all the other postings I've looked at, this code seems like it should work. When I run this code, nothing happens, though. No errors, nothing. I get no email sent to me.
Do you know if I:
1) if and what I should put in my global.asa file
2) if cdonts works with IIS 5 on a windows 2000 server?
Any help is greatly appreciated...
DIM myMail
SET myMail = Server.CreateObject("CDONTS.Newmail"
myMail.From = "me@mycompany.com"
myMail.To = "me@mycompany.com"
myMail.Subject = "test"
myMail.Body = "body"
myMail.Send()
SET myMail = Nothing
From all the other postings I've looked at, this code seems like it should work. When I run this code, nothing happens, though. No errors, nothing. I get no email sent to me.
Do you know if I:
1) if and what I should put in my global.asa file
2) if cdonts works with IIS 5 on a windows 2000 server?
Any help is greatly appreciated...