469,285 Members | 2,561 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,285 developers. It's quick & easy.

send method CDONTS.NewMail

I am running the following script for sending e-mail thro web

Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
objCDOMail.From = "vk****@ugs.com"
objCDOMail.To = "vk****@ugs.com"
objCDOMail.Subject = "Library books"
objCDOMail.BodyFormat = 0
objCDOMail.MailFormat = 0
objCDOMail.Body = "hi"
objCDOMail.Send
Set objCDOMail = Nothing
-------------------------
I get the following error, when I call send method of CDONTS.NewMail object
---------------------
Microsoft VBScript runtime error '800a0046'
Permission denied

/cae/library/issueupdate.asp, line 61

----------------------------

I tried both the following. Everything looks fine. My OS is windows200
server

http://support.microsoft.com/default...b;en-us;286301

http://support.microsoft.com/default...b;en-us;197619

Can somebody give a clue, what is going wrong

Any help is appreciated

-Vasanth
Jul 19 '05 #1
6 7851
Check User Rights in the SMTP Virtual Server in IIS.
I would suggest using CDO instead of CDONTS.
Set objCDOMail = CreateObject("CDO.Message")
objCDOMail.From = "vk****@ugs.com"
objCDOMail.To = "vk****@ugs.com"
objCDOMail.Subject = "Library books"
objCDOMail.BodyFormat = 0
objCDOMail.MailFormat = 0
objCDOMail.Body = "hi"
objCDOMail.Send
Set objCDOMail = Nothing
dlbjr
Pleading sagacious indoctrination!
Jul 19 '05 #2
Only administrators have permissions for SMTP Virtual Server in IIS. Who
else should have?

"dlbjr" <oo**@iforgot.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Check User Rights in the SMTP Virtual Server in IIS.
I would suggest using CDO instead of CDONTS.
Set objCDOMail = CreateObject("CDO.Message")
objCDOMail.From = "vk****@ugs.com"
objCDOMail.To = "vk****@ugs.com"
objCDOMail.Subject = "Library books"
objCDOMail.BodyFormat = 0
objCDOMail.MailFormat = 0
objCDOMail.Body = "hi"
objCDOMail.Send
Set objCDOMail = Nothing
dlbjr
Pleading sagacious indoctrination!

Jul 19 '05 #3
now I get the following error. when I call send method
----------------------------------------------
CDO.Message.1 error '80040220'

The "SendUsing" configuration value is invalid.

/cae/library/cdomail.asp, line 31

"dlbjr" <oo**@iforgot.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Check User Rights in the SMTP Virtual Server in IIS.
I would suggest using CDO instead of CDONTS.
Set objCDOMail = CreateObject("CDO.Message")
objCDOMail.From = "vk****@ugs.com"
objCDOMail.To = "vk****@ugs.com"
objCDOMail.Subject = "Library books"
objCDOMail.BodyFormat = 0
objCDOMail.MailFormat = 0
objCDOMail.Body = "hi"
objCDOMail.Send
Set objCDOMail = Nothing
dlbjr
Pleading sagacious indoctrination!

Jul 19 '05 #4
Stop using CDONTS!
http://www.aspfaq.com/2026

--
http://www.aspfaq.com/
(Reverse address to reply.)

"vasanth kumar" <va***********@eds.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
I am running the following script for sending e-mail thro web

Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
objCDOMail.From = "vk****@ugs.com"
objCDOMail.To = "vk****@ugs.com"
objCDOMail.Subject = "Library books"
objCDOMail.BodyFormat = 0
objCDOMail.MailFormat = 0
objCDOMail.Body = "hi"
objCDOMail.Send
Set objCDOMail = Nothing
-------------------------
I get the following error, when I call send method of CDONTS.NewMail
object
---------------------
Microsoft VBScript runtime error '800a0046'
Permission denied

/cae/library/issueupdate.asp, line 61

----------------------------

I tried both the following. Everything looks fine. My OS is windows200
server

http://support.microsoft.com/default...b;en-us;286301

http://support.microsoft.com/default...b;en-us;197619

Can somebody give a clue, what is going wrong

Any help is appreciated

-Vasanth

Jul 19 '05 #5
I disabled Anonymous Access for my webfolder.
I gave Authentication as Basic Authentication.
users login to this folder and update data. here I am running a script for
sending a mail.
The logged user does not have modify/write permission to the
inetpub/wwwrot/mailroot/pickup folder.
so my script is failing(as Permisson Denied") when I call send method of
CDONTS.NewMail object.
I gave modify permissions to all the users of this tool for
inetpub/wwwrot/mailroot/pickup folder.
then my script is successful.

Is this right way? How do people handle this kind of situation.
is there any danger in doing the above step?

Any suggestion appreciated

Regards,
Vasanth
-----------------------------------
"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Stop using CDONTS!
http://www.aspfaq.com/2026

--
http://www.aspfaq.com/
(Reverse address to reply.)

"vasanth kumar" <va***********@eds.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
I am running the following script for sending e-mail thro web

Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
objCDOMail.From = "vk****@ugs.com"
objCDOMail.To = "vk****@ugs.com"
objCDOMail.Subject = "Library books"
objCDOMail.BodyFormat = 0
objCDOMail.MailFormat = 0
objCDOMail.Body = "hi"
objCDOMail.Send
Set objCDOMail = Nothing
-------------------------
I get the following error, when I call send method of CDONTS.NewMail
object
---------------------
Microsoft VBScript runtime error '800a0046'
Permission denied

/cae/library/issueupdate.asp, line 61

----------------------------

I tried both the following. Everything looks fine. My OS is windows200
server

http://support.microsoft.com/default...b;en-us;286301

http://support.microsoft.com/default...b;en-us;197619

Can somebody give a clue, what is going wrong

Any help is appreciated

-Vasanth


Jul 19 '05 #6
ASP.Net has its own SMTP solution (which may use CDO behind the scenes, I'm
not sure... but the code you will use is certainly a re-write). Please
follow up in a .NET newsgroup for more information.

--
http://www.aspfaq.com/
(Reverse address to reply.)


"WaterBug" <Wa******@discussions.microsoft.com> wrote in message
news:71**********************************@microsof t.com...
Can CDO be used within an ASP.Net web vb application?...k

"Aaron [SQL Server MVP]" wrote:
Stop using CDONTS!
http://www.aspfaq.com/2026

--
http://www.aspfaq.com/
(Reverse address to reply.)

"vasanth kumar" <va***********@eds.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
I am running the following script for sending e-mail thro web

Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
objCDOMail.From = "vk****@ugs.com"
objCDOMail.To = "vk****@ugs.com"
objCDOMail.Subject = "Library books"
objCDOMail.BodyFormat = 0
objCDOMail.MailFormat = 0
objCDOMail.Body = "hi"
objCDOMail.Send
Set objCDOMail = Nothing
-------------------------
I get the following error, when I call send method of CDONTS.NewMail
object
---------------------
Microsoft VBScript runtime error '800a0046'
Permission denied

/cae/library/issueupdate.asp, line 61

----------------------------

I tried both the following. Everything looks fine. My OS is windows200
server

http://support.microsoft.com/default...b;en-us;286301

http://support.microsoft.com/default...b;en-us;197619

Can somebody give a clue, what is going wrong

Any help is appreciated

-Vasanth


Jul 19 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by microsoft.public.dotnet.languages.csharp | last post: by
2 posts views Thread by Paul Turley | last post: by
3 posts views Thread by Luiz Vianna | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.