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!

Trying to do CDONTS mail, Permission Denied. Fear! 1

Status
Not open for further replies.

kempis555

Programmer
Jan 2, 2001
77
Fear! Fear and Trembling!
Hi all,
I'm afraid because I'm stumped bad. On a new Win2K box when I try to run the following mailing script I get runtime error "800a0046 Permission Denied" on line 4:

<%
Dim objNewMail
Set objNewMail = CreateObject(&quot;CDONTS.NewMail&quot;)
objNewMail.Send &quot;me@mys.com&quot;, &quot;same@mys.com&quot;, &quot;Hello&quot;, &quot;I sent this in 3 statements!&quot;, 0 ' low importance
Set objNewMail = Nothing
%>

Line 4 is where the objNewMail is sending the mail. I know it's not the object creation which is failing, because in another script I have some code which successfully makes a FileScriptingObject. That object is able to write to a file just fine and dandy.

I've tried changing the permissions on all of the mail folders under the mailroot, and I've granted Operator privileges to the IUSR and IWAM accounts under the Default Mail Server. Heck, I've even allowed Everyone to run and execute all DLL's in Winnt which have &quot;mail&quot; or &quot;SMTP&quot; in their names!!!

Bleah. Is there anything I'm missing? I'm not a network admin so this is all rather new to me. Is there any other way to test the mail server on a new box?

-k

help me obi wan kenobi...
 
Well I figured out a workaround, in case anyone is reading this... I downloaded the persits DLL and found an external SMTP server to use.

I found this idea in TekTips, but for the third time or so I got foolied by the search box at the top of the page... whenever I press Keyword search I usually start typing in the first textbox I see. And so CDONTS didn't appear in a FORUM search and I asked my oft-asked question here.

Gomen nasai, I was panicking. :p

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top