Ask a Question related to ASP, Design and Development.
-
Joseph Narissi #1
VBScript Error with CDONTS
Hello,
Using IIS4 on a NT4 system.... sometimesI get the following error:
Microsoft VBScript runtime error '800a0005'
Invalid procedure call or argument
Here is the code:
function UtilSendEmail(to_addr, cc_addr, from_addr, subject, body)
UtilSendEmail=0
Dim objCDO
Set objCDO = CreateObject("CDONTS.NewMail")
objCDO.To = to_addr
objCDO.Cc = cc_addr
objCDO.From = from_addr
objCDO.Subject = subject
objCDO.Body = body
objCDO.Send
set objCDO=Nothing
end function
The error always occurs on the FROM line..... any ideas?
Thanks ahead for any help....
Joesph Narissi
[email]jnarissi@msn.com[/email]
Joseph Narissi Guest
-
CDONTS error - too much data?
I have been using the CDONTS component on Windows 2000 to send emails for a long time now (code below). However, over time, the report that I am... -
ASP CDONTS error
Hi, I have been building a shopping cart & the final page will email the order to an address given however I get the following error message using... -
CDONTS Problem - no error msg
I verified that CDONTS and SMTP are supported by the server. I do not receive an error message when I open the following ASP page nor do I receive... -
error '8007045a' when executing CDONTS
How can I get text description of the error? This is ASP application, not .NET application. Thanks. *** Sent via Developersdex... -
error '8007045a' when executing CDONTS
I have the following sample code to send email from a form via CDONTS. I got error '8007045a' when executing the ASP page. Please help. THanks. ... -
Aaron Bertrand - MVP #2
Re: VBScript Error with CDONTS
I don't see the problem, but try using CDO.Message instead... CDONTS is
deprecated.
"Joseph Narissi" <jnarissi@anchor-computer.com> wrote in message
news:eA2gGVicDHA.1748@TK2MSFTNGP12.phx.gbl...> Hello,
>
> Using IIS4 on a NT4 system.... sometimesI get the following error:
>
> Microsoft VBScript runtime error '800a0005'
> Invalid procedure call or argument
>
> Here is the code:
>
> function UtilSendEmail(to_addr, cc_addr, from_addr, subject, body)
>
> UtilSendEmail=0
> Dim objCDO
> Set objCDO = CreateObject("CDONTS.NewMail")
>
> objCDO.To = to_addr
> objCDO.Cc = cc_addr
> objCDO.From = from_addr
> objCDO.Subject = subject
> objCDO.Body = body
> objCDO.Send
>
> set objCDO=Nothing
>
> end function
>
>
> The error always occurs on the FROM line..... any ideas?
>
> Thanks ahead for any help....
>
> Joesph Narissi
> [email]jnarissi@msn.com[/email]
>
>
>
Aaron Bertrand - MVP Guest
-
Joseph Narissi #3
Re: VBScript Error with CDONTS
Isnt CDO only available for Win2K+? We are using NT4... does thi smatter?
"Aaron Bertrand - MVP" <aaron@TRASHaspfaq.com> wrote in message
news:eG8tZgicDHA.1748@TK2MSFTNGP12.phx.gbl...> I don't see the problem, but try using CDO.Message instead... CDONTS is
> deprecated.
>
>
>
> "Joseph Narissi" <jnarissi@anchor-computer.com> wrote in message
> news:eA2gGVicDHA.1748@TK2MSFTNGP12.phx.gbl...>> > Hello,
> >
> > Using IIS4 on a NT4 system.... sometimesI get the following error:
> >
> > Microsoft VBScript runtime error '800a0005'
> > Invalid procedure call or argument
> >
> > Here is the code:
> >
> > function UtilSendEmail(to_addr, cc_addr, from_addr, subject, body)
> >
> > UtilSendEmail=0
> > Dim objCDO
> > Set objCDO = CreateObject("CDONTS.NewMail")
> >
> > objCDO.To = to_addr
> > objCDO.Cc = cc_addr
> > objCDO.From = from_addr
> > objCDO.Subject = subject
> > objCDO.Body = body
> > objCDO.Send
> >
> > set objCDO=Nothing
> >
> > end function
> >
> >
> > The error always occurs on the FROM line..... any ideas?
> >
> > Thanks ahead for any help....
> >
> > Joesph Narissi
> > [email]jnarissi@msn.com[/email]
> >
> >
> >
>
Joseph Narissi Guest
-
Aaron Bertrand - MVP #4
Re: VBScript Error with CDONTS
> Isnt CDO only available for Win2K+?
Yes. CDONTS is still deprecated, so your code will stop working when you
finally decide to ditch NT. How about using one of the other dozens of mail
objects available? [url]http://www.aspfaq.com/2119[/url]
Aaron Bertrand - MVP Guest



Reply With Quote

