473,231 Members | 1,558 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,231 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 8090
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: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
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
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

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.