CDONTS - Microsoft VBScript运行时错误'800a0046' [英] CDONTS - Microsoft VBScript runtime error '800a0046'

查看:65
本文介绍了CDONTS - Microsoft VBScript运行时错误'800a0046'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!


我必须做一些开发,我正在尝试配置我的服务器以模仿我们的生产服务器的操作
。我遇到的问题是我试图使用CDONTS在Windows 2003 Server上的IIS下发送电子邮件。

服务器没有SMTP服务正在运行,但我确实有第三个运行的
方SMTP / POP / IMAP服务器。


我复制了CDONTS.DLL文件并注册了它。在Web Serice

Extensions中我启用了CDONTS.DLL文件。


该对象似乎是正确创建的,但是当SEND出现错误时

方法执行。 (错误和代码如下所示)


显然我在这里缺少别的东西......任何人都可以伸出援手吗?


Microsoft VBScript运行时错误''800a0046''


权限被拒绝


/shaw/tsrnet/Common_Modules/Mail.asp,84行
''...一些代码...

设置objMail = server.CreateObject(" CDONTS.NewMail")

objMail.BodyFormat = 0

objMail.MailFormat = 0

objMail.From =" fr ***** @ here.now"

objMail.To = to *** @ here.now

objMail.Subject =" Subject Here"

objMail.Body =" Message Body Here"

objMail.Send''****错误在这里***

设置objMail =没有

''...更多代码...

解决方案

确保IUSR_ [服务器名称]具有NTFS权限才能将文件写入

\inetpub \ mailroot \\ \\ pickup。


雷在家


" Seeker" <做******* @ me.here>在消息中写道

news:9391c.650856


JQ1.59561@pd7tw1no ...

嗨!
<我必须做一些开发,我正在尝试将我的服务器配置为
模仿生产服务器的操作。我遇到的问题是我试图使用CDONTS在Windows 2003 Server上的IIS下发送电子邮件。
服务器没有运行SMTP服务,但我做有第三方运行SMTP / POP / IMAP服务器。

我复制了CDONTS.DLL文件并进行了注册。在Web Serice
Extensions中,我启用了CDONTS.DLL文件。

对象似乎是正确创建的,但是当
SEND方法执行时出现错误。 (错误和代码如下所示)

显然我在这里缺少别的东西......任何人都可以伸出援手吗?

Microsoft VBScript运行时错误''800a0046''

权限被拒绝

/shaw/tsrnet/Common_Modules/Mail.asp,第84行

''......一些代码...
设置objMail = server.CreateObject(" CDONTS.NewMail")
objMail.BodyFormat = 0
objMail.MailFormat = 0
objMail.From =" fr **** *@here.now"
objMail.To =" to *** @ here.now"
objMail.Subject =" Subject Here"
objMail.Body =" Message Body在这里
objMail.Send''****错误在这里***
设置objMail =没有
''...更多代码...


Hrm ...该文件夹不存在。尝试添加它但它没有工作

(没想到它)。


我在想我的问题是第三方SMTP服务器而不是

IIS SMTP服务器。


从我在谷歌上看到的,我已经做了一切必要的事情来获得CDONTS

在Win2K3下工作...


任何其他帮助都会被贬低。


" Ray at<%= sLocation%> [MVP] QUOT; < myfirstname at lane34 dot com>写在

消息新闻:%2 **************** @ TK2MSFTNGP10.phx.gbl ...

确定IUSR_ [服务器名称]具有将文件写入
\inetpub \ mailroot \pickup的NTFS权限。

Ray在家里

搜索者 <做******* @ me.here>在消息中写道
新闻:9391c.650856


Hi!

I have to do some developing and I''m trying to configure my server to mimic
the operation of our production server. The issue I''m having is that I''m
trying to use CDONTS to send an email under IIS on a Windows 2003 Server.
The server does not have the SMTP service running, but I do have a third
party SMTP/POP/IMAP server running.

I have copied the CDONTS.DLL file and registered it. In the Web Serice
Extensions I have enabled the CDONTS.DLL file.

The object appears to be created properly, but I get an error when the SEND
method executes. (Error and Code shown below)

Obviously I''m missing something else here... Can anyone lend a hand?

Microsoft VBScript runtime error ''800a0046''

Permission denied

/shaw/tsrnet/Common_Modules/Mail.asp, line 84
''... some code ...
Set objMail = server.CreateObject("CDONTS.NewMail")
objMail.BodyFormat = 0
objMail.MailFormat = 0
objMail.From = "fr*****@here.now"
objMail.To = "to***@here.now"
objMail.Subject = "Subject Here"
objMail.Body = "Message Body Here"
objMail.Send '' **** ERROR HERE ***
Set objMail = nothing
''... some more code ...

解决方案

Be sure that IUSR_[server name] has NTFS permissions to write files to
\inetpub\mailroot\pickup.

Ray at home

"Seeker" <do*******@me.here> wrote in message
news:9391c.650856


JQ1.59561@pd7tw1no...

Hi!

I have to do some developing and I''m trying to configure my server to mimic the operation of our production server. The issue I''m having is that I''m
trying to use CDONTS to send an email under IIS on a Windows 2003 Server.
The server does not have the SMTP service running, but I do have a third
party SMTP/POP/IMAP server running.

I have copied the CDONTS.DLL file and registered it. In the Web Serice
Extensions I have enabled the CDONTS.DLL file.

The object appears to be created properly, but I get an error when the SEND method executes. (Error and Code shown below)

Obviously I''m missing something else here... Can anyone lend a hand?

Microsoft VBScript runtime error ''800a0046''

Permission denied

/shaw/tsrnet/Common_Modules/Mail.asp, line 84
''... some code ...
Set objMail = server.CreateObject("CDONTS.NewMail")
objMail.BodyFormat = 0
objMail.MailFormat = 0
objMail.From = "fr*****@here.now"
objMail.To = "to***@here.now"
objMail.Subject = "Subject Here"
objMail.Body = "Message Body Here"
objMail.Send '' **** ERROR HERE ***
Set objMail = nothing
''... some more code ...



Hrm... that folder doesn''t exist. Tried adding it but it didnt''t work
(didn''t expect it to).

I''m thinking that my problem is the third party SMTP server instead of the
IIS SMTP server.

From what I''ve seen on Google, I''ve done everything necessary to get CDONTS
to work under Win2K3...

Any other help would be appreaciated.

"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
message news:%2****************@TK2MSFTNGP10.phx.gbl...

Be sure that IUSR_[server name] has NTFS permissions to write files to
\inetpub\mailroot\pickup.

Ray at home

"Seeker" <do*******@me.here> wrote in message
news:9391c.650856


这篇关于CDONTS - Microsoft VBScript运行时错误'800a0046'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆