CDONTS Permission Denied Problem...

R

Robert Suffecool

Hi everyone...

I'm having a problem sending an email message using the CDONTS object
because of a "permission denied" error. Assume the following variables are
in the ASP file....

txtSubject = "This is a test"
txtToEmail = "(e-mail address removed)"
txtFromEmail = "(e-mail address removed)"
txtMessage = "Some message"

Here is my ASP code...

'Create mail object and send the email message...
set objMail = server.CreateObject("CDONTS.NewMail")
objMail.To = txtToEmail
objMail.From = txtFromEmail
objMail.Subject = txtSubject
objMail.Body = txtMessage
objMail.Send

How do I fix this problem?

Sincerely,

Robert
 
J

Jon

Hi everyone...
I'm having a problem sending an email message using the CDONTS object
because of a "permission denied" error. Assume the following variables are
in the ASP file....

txtSubject = "This is a test"
txtToEmail = "(e-mail address removed)"
txtFromEmail = "(e-mail address removed)"
txtMessage = "Some message"

Here is my ASP code...

'Create mail object and send the email message...
set objMail = server.CreateObject("CDONTS.NewMail")
objMail.To = txtToEmail
objMail.From = txtFromEmail
objMail.Subject = txtSubject
objMail.Body = txtMessage
objMail.Send

How do I fix this problem?

Sincerely,

Robert

Is it now Server 2003:
http://www.tconsult.com/aspnet/server2003/smtp_server_2003_cdonts.aspx ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top