Hey all,
I am using the CDONTS object to to send an email to myself to notify me whenever a form on my site is filled out. I am runninf windows xp pro and using IIS 5.1. When I initially tried to code the functionality, I was getting an error when I tried to create the CDONTS object so I then went and downloaded the cdonts.dll and registered it. The error went away and everything appeared to work except I am not receiving the emails and not getting any errors.
My question is, do I need to have something other than just IIS setup. Do I need to be hosting a mailserver or have one at my disposal. The addresses I am using in the .To and .From properties of the CDONTS object are hotmail addresses, not sure if it likes that idea. I list some of my code below. Thanks for the help.
Set objCDO = Server.CreateObject("CDONTS.NewMail")
objCDO.From = "name@aol.com"
objCDO.To = "name@hotmail.com"
objCDO.Subject = "Subject Text"
objCDO.BodyFormat = 1
strBody = "<html><head></head><body>"
strBody = strBody & "<table border='1' cellpadding='3' cellspacing='3' style='border-collapse: collapse' bordercolor='#111111' width='400' id='AutoNumber1'>"
strBody = strBody & "<tr><td width='77'>Name:</td><td width='320'>" & strName & " </td></tr>"
strBody = strBody & "<tr><td width='77'>Idea:</td><td width='320'>" & strIdea & " </td></tr>"
strBody = strBody & "<tr><td width='77'>Comment:</td><td width='320'>" & strComment & " </td></tr>"
strBody = strBody & "</table></body></html>"
objCDO.Body = strBody
objCDO.Send
I am using the CDONTS object to to send an email to myself to notify me whenever a form on my site is filled out. I am runninf windows xp pro and using IIS 5.1. When I initially tried to code the functionality, I was getting an error when I tried to create the CDONTS object so I then went and downloaded the cdonts.dll and registered it. The error went away and everything appeared to work except I am not receiving the emails and not getting any errors.
My question is, do I need to have something other than just IIS setup. Do I need to be hosting a mailserver or have one at my disposal. The addresses I am using in the .To and .From properties of the CDONTS object are hotmail addresses, not sure if it likes that idea. I list some of my code below. Thanks for the help.
Set objCDO = Server.CreateObject("CDONTS.NewMail")
objCDO.From = "name@aol.com"
objCDO.To = "name@hotmail.com"
objCDO.Subject = "Subject Text"
objCDO.BodyFormat = 1
strBody = "<html><head></head><body>"
strBody = strBody & "<table border='1' cellpadding='3' cellspacing='3' style='border-collapse: collapse' bordercolor='#111111' width='400' id='AutoNumber1'>"
strBody = strBody & "<tr><td width='77'>Name:</td><td width='320'>" & strName & " </td></tr>"
strBody = strBody & "<tr><td width='77'>Idea:</td><td width='320'>" & strIdea & " </td></tr>"
strBody = strBody & "<tr><td width='77'>Comment:</td><td width='320'>" & strComment & " </td></tr>"
strBody = strBody & "</table></body></html>"
objCDO.Body = strBody
objCDO.Send