I am trying to send a simple message from a page once the web visitor has completed a registration form. I have no trouble getting the data into the database, however I can't get past the "error '800a0046', Permission Denied" error. My code is below:
<%
dim objMail
set objMail = Server.CreateObject("CDONTS.Newmail") ' I have also tried ("CDO.Messsage")
objMail.From = "me@anydotcom.com"
objMail.To = "anyone@anotherdotcom.com"
objMail.Subject = "Sending Email with ASP using CDONTS"
objMail.Body = "Please disregard this email. It is only a test."
objMail.Send
%>
I've read other posts on this forum and on others, like 4guysfromrolla, and I don't know what it is I need to do to get permissions granted. Can anyone please let me know what I need to do to get this accomplished? Is it my web hosting company? What exactly do I need to tell them to allow me to do this? Do I need my own e-mail setup to do this?
Any and all help is appreciated. Many thanks and best regards.
<%
dim objMail
set objMail = Server.CreateObject("CDONTS.Newmail") ' I have also tried ("CDO.Messsage")
objMail.From = "me@anydotcom.com"
objMail.To = "anyone@anotherdotcom.com"
objMail.Subject = "Sending Email with ASP using CDONTS"
objMail.Body = "Please disregard this email. It is only a test."
objMail.Send
%>
I've read other posts on this forum and on others, like 4guysfromrolla, and I don't know what it is I need to do to get permissions granted. Can anyone please let me know what I need to do to get this accomplished? Is it my web hosting company? What exactly do I need to tell them to allow me to do this? Do I need my own e-mail setup to do this?
Any and all help is appreciated. Many thanks and best regards.