473,320 Members | 1,948 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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 8099
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: David | last post by:
My email application was working a couple of weeks ago, then all of a sudden I get Error Type: (0x8009000F) Object already exists. I checked the permissions on the machinekeys directory...
1
by: Edward | last post by:
My computer is at intranet,I want to use following code to realizing function of sending mail.But this program only can send mail between intranet.If I send mail in internet,I need to through proxy...
29
by: | last post by:
I did a working code with CDONTS on NT4 Now I am testing is on w2k and it looks like objCDONTS.Send is completely ignored. I think is it ignored because it throws no errors, neither does the...
2
by: Jammer | last post by:
Can someone give me some sample code to use CDONTS.new to send email with an attachment? I've got sample code from the following website; ...
6
by: DigitalRick | last post by:
I have been running CDONTS in my ASPpages to send emails to me sent from my guestbook. It had been working fine untill I upgraded to Server 2003 (I am also running Exchange 2003) all locally. I...
2
by: microsoft.public.dotnet.languages.csharp | last post by:
ASP.Net, C#, Email message, CDonts not CDO I am writing an ASP.Net application where I cannot use CDO. I must use CDonts. I cannot find an example of this on the Internet. I only see examples...
2
by: Paul Turley | last post by:
How do I format a message so it shows up as a web page in the mail reader. In the body of my message, I'm including a '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Traditional//EN">' tag and...
3
by: Luiz Vianna | last post by:
Guys, I have a Windows 2003 running Exchange 2003. On this machine I'm trying to run an ASP.NET webform to send an e-mail. The codebehing my ASPX is like this: Dim NewMail As New...
3
by: Prasad | last post by:
Hi all, I had to write a page in ASP which sends an email. I googled and was able to write the following code: <html> <body> <% Set Mail = Server.CreateObject("CDONTS.NewMail") Mail.To =...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.