Ask a Question related to Dreamweaver AppDev, Design and Development.
-
The Ox #1
Problem with CDOSYS
I am having problems when running the following code, I have tried getting
support from my ISP but they haven't a clue...
'Creation of the Email Server Object
Set objMessage = CreateObject("CDO.Message")
Set objConfig = CreateObject("CDO.Configuration")
'Here is determined which way emails will be processed (local oder external
'server). Please always set an external server.
objConfig.Fields(cdoSendUsingMethod) = cdoSendUsingPort
'Outgoing SMTP server with SMTP authentication
objConfig.Fields(cdoSMTPServer) = "post.newnet.co.uk"
'SMTP port
objConfig.Fields(cdoSMTPServerPort) = 25
'Plain text authentication
objConfig.Fields(cdoSMTPAuthenticate) = cdoBasic
'account name
objConfig.Fields(cdoSendUserName) = ""
'password
objConfig.Fields(cdoSendPassword) = ""
objConfig.Fields.Update
Set objMessage.Configuration = objConfig
objMessage.To = "somebody@somedomain.com"
objMessage.From = "somebody@someotherdomain.com"
objMessage.Subject = "this is my subject"
objMessage.HTMLBody = "this is my message"
On Error Resume Next
objMessage.Send
It is falling over on the line objConfig.Fields(cdoSendUsingMethod) =
cdoSendUsingPort
I am getting the following error -
Any ideas, suggestions or tutorials would be appreciated.
Many thanks in advance
Rob
The Ox Guest
-
CDOSYS vs CDONTS
hello i have resently installed win 2003 web. me and my clients are used to use CDONTS and have meny asp pages configured fore it BUT 2003 uses... -
CDOSYS NNTP
Is it possible to send/receive nntp messages via CDOSYS without a 3rd party news component? The NNTP links I have found appear to be related to MS... -
CDOSYS and smarthost
I'm trying to send an email from my ASP page using CDO.Message and CDO.Configuration. I couldn't get this to work for ages and all my emails ended... -
CDOSYS URL namespace... Huh?
I've looked all over the world (via Google) and found a few sample snippets of CDOSYS Message object. (And even more sites that merely copy the... -
cdosys.dll problem
Hi, I had my ASP .NET application in my windows 2000 Server and IIS5. It had been working fine for 9 months. Because of virus threatening of last... -
The Ox #2
Re: Problem with CDOSYS
Post went before I could finish...
error is
ADODB.Fields error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in
conflict with one another.
/test.asp, line 10
Thanks
The Ox Guest
-
danilocelic *TMM* #3
Re: Problem with CDOSYS
The Ox wrote:
Do you have cdoSendUsingMethod (and the other cdoXXXXX variables)> It is falling over on the line objConfig.Fields(cdoSendUsingMethod) =
> cdoSendUsingPort
defined somewhere within your code, maybe in an include? If not, then
that is the probelm, those variable do not contain the values that the
objects being used expect. Take a look at the code from Microsoft for
sending email with CDOSYS:
[url]http://support.microsoft.com/?kbid=286431[/url]
(don't look in Firefox or Mozilla as M$ somehow botched up the display
for the <PRE> tag for those browsers)
--
Danilo Celic
| Extending Knowledge, Daily [url]http://CommunityMX.com/[/url]
danilocelic *TMM* Guest
-
Chris In Madison #4
Re: Problem with CDOSYS
You might try setting the config variables using the method I outlined in
this forum posting:
[url]http://www.charon.co.uk/aspnetforums/ShowPost.aspx?PostID=3074[/url]
It's a little different from the method you're using, but I've used it
successfully.
Best regards,
Chris
Chris In Madison Guest
-
Julian Roberts #5
Re: Problem with CDOSYS
It's a coding error. ISP's normally shy away from those. You probably
haven't included the meta data. eg
<!--METADATA TYPE="typelib" UUID="CD000000-8B95-11D1-82DB-00C04FB1625D"
NAME="CDO for Windows 2000 Type Library" -->
<!--METADATA TYPE="typelib" UUID="00000205-0000-0010-8000-00AA006D2EA4"
NAME="ADODB Type Library" -->
Another method is just to use the standard constants as Chris outlined in a
post on my site. Also some info here
[url]http://www.charon.co.uk/content.aspx?CategoryID=27&ArticleID=26[/url]
--
Jules
[url]http://www.charon.co.uk/charoncart[/url]
Charon Cart 3
Shopping Cart Extension for Dreamweaver MX/MX 2004
Julian Roberts Guest



Reply With Quote

