473,378 Members | 1,104 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,378 software developers and data experts.

Trying to USE CDONTS for email ... oops

for:

There was no reference to CDO in the References so selected CDO.
Code didn't work (CDONTS.email unrecognised).

read

There was no reference to CDONTS in the References so selected CDO.
Code didn't work (CDONTS.email unrecognised).

Sorry!

Jeff B.
Sep 27 '08 #1
6 2909
jb********@aol.com wrote in news:d2d14219-b62c-4e84-98fb-
40**********@k13g2000hse.googlegroups.com:
for:

There was no reference to CDO in the References so selected CDO.
Code didn't work (CDONTS.email unrecognised).

read

There was no reference to CDONTS in the References so selected CDO.
Code didn't work (CDONTS.email unrecognised).

Sorry!

Jeff B.
I believe CDONTS was Windows NT.

You may have success with CDO as per:

http://www.ffdba.com/downloads/Send_E-Mail_With_CDO.htm

--
lyle fairfield
Sep 27 '08 #2
On Sep 27, 4:23*pm, lyle fairfield <lylef...@yah00.cawrote:
jbguern...@aol.com wrote in news:d2d14219-b62c-4e84-98fb-
40bb7eb34...@k13g2000hse.googlegroups.com:
for:
There was no reference to CDO in the References so selected CDO.
Code didn't work (CDONTS.email unrecognised).
read
There was no reference to CDONTS in the References so selected CDO.
Code didn't work (CDONTS.email unrecognised).
Sorry!
Jeff B.

I believe CDONTS was Windows NT.

You may have success with CDO as per:

http://www.ffdba.com/downloads/Send_E-Mail_With_CDO.htm

--
lyle fairfield
Thank you Lyle. I'll give it a try tomorrow.

Jeff B.
Sep 27 '08 #3
On Sep 27, 6:04*pm, j...@angelsystems.co.uk wrote:
On Sep 27, 4:23*pm, lyle fairfield <lylef...@yah00.cawrote:
I believe CDONTS was Windows NT.
You may have success with CDO as per:
http://www.ffdba.com/downloads/Send_E-Mail_With_CDO.htm
--
lyle fairfield

Thank you Lyle. *I'll give it a try tomorrow.

Jeff B.
No luck, I'm afraid. This is the code I tried (password etc changed,
of course):

===========================================
Public Sub SimpleSendMailWithCDOB()
'early binding
'requires reference to cdosys.dll

Dim iCfg As CDO.Configuration

'This where it fell over. Compile error at previous line!. User-
defined type not defined

Dim iMsg As CDO.Message

Set iCfg = New CDO.Configuration
Set iMsg = New CDO.Message

With iCfg.Fields
.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Item(cdoSMTPServerPort) = 587 'I use port 587
.Item(cdoSMTPServer) = "smtp.angelsystems.co.uk" 'my server
.Item(cdoSMTPAuthenticate) = cdoBasic
.Item(cdoSendUserName) = "Jeff"
.Item(cdoSendPassword) = "*******"
.Item(cdoSendEmailAddress) = "me <me@myaddress>"
..Update
End With

With iMsg
.Configuration = iCfg
.Subject = "Test Late Binding"
.To = "me@myaddress"
.TextBody = "Test"
.send
End With

Set iMsg = Nothing
Set iCfg = Nothing

End Sub
======================================

I have referenced Microsoft CDO 1.21 Library.

I also tried re-registering ... Regsvr32.exe "C:\windows
\system32\cdosys.dll" No luck there either.
I got the error message ... DLLRegisterServer in C:\windows
\system32\cdosys.dll failed. Return code was 0x800704da.

I know that cdosys.dll is present in c:\windows\system32.

Anyone have a clue as to what's wrong?

Thanks in advance.

Jeff B.
Sep 28 '08 #4
je**@angelsystems.co.uk wrote in
news:a3**********************************@l64g2000 hse.googlegroups.com:
On Sep 27, 6:04*pm, j...@angelsystems.co.uk wrote:
>On Sep 27, 4:23*pm, lyle fairfield <lylef...@yah00.cawrote:
I believe CDONTS was Windows NT.
You may have success with CDO as per:
>http://www.ffdba.com/downloads/Send_E-Mail_With_CDO.htm
--
lyle fairfield

Thank you Lyle. *I'll give it a try tomorrow.

Jeff B.

No luck, I'm afraid. This is the code I tried (password etc changed,
of course):

==========================================Public Sub
SimpleSendMailWithCDOB() 'early binding
'requires reference to cdosys.dll

Dim iCfg As CDO.Configuration

'This where it fell over. Compile error at previous line!. User-
defined type not defined

Dim iMsg As CDO.Message

Set iCfg = New CDO.Configuration
Set iMsg = New CDO.Message

With iCfg.Fields
.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Item(cdoSMTPServerPort) = 587 'I use port 587
.Item(cdoSMTPServer) = "smtp.angelsystems.co.uk" 'my server
.Item(cdoSMTPAuthenticate) = cdoBasic
.Item(cdoSendUserName) = "Jeff"
.Item(cdoSendPassword) = "*******"
.Item(cdoSendEmailAddress) = "me <me@myaddress>"
.Update
End With

With iMsg
.Configuration = iCfg
.Subject = "Test Late Binding"
.To = "me@myaddress"
.TextBody = "Test"
.send
End With

Set iMsg = Nothing
Set iCfg = Nothing

End Sub
=====================================
I have referenced Microsoft CDO 1.21 Library.

I also tried re-registering ... Regsvr32.exe "C:\windows
\system32\cdosys.dll" No luck there either.
I got the error message ... DLLRegisterServer in C:\windows
\system32\cdosys.dll failed. Return code was 0x800704da.

I know that cdosys.dll is present in c:\windows\system32.

Anyone have a clue as to what's wrong?

Thanks in advance.

Jeff B.
from http://support.microsoft.com/kb/171440

"The dynamic-link libraries (DLLs) for CDO (1.1, 1.2, 1.21) and CDO
Rendering (1.1, 1.2) are MAPI client object libraries. As such, they
require MAPI and service providers (for example, the same service
providers as with Microsoft Exchange Server).

Collaboration Data Objects for NTS (CDONTS) is a Simple Mail Transfer
Protocol (SMTP) based Messaging offering, which is part of the overall
CDO (1.1, 1.2) Library, but is not MAPI dependent.

Collaboration Data objects for Windows 2000 (CDOSYS), is a quantum leap
in SMTP Messaging over CDONTS. CDOSYS provides for rich content through
extensive MIME support."

-------

I suggest that you try the late-binding version.

--
lyle fairfield
Sep 28 '08 #5
On Sep 28, 10:57*am, lyle fairfield <lylef...@yah00.cawrote:
j...@angelsystems.co.uk wrote innews:a3**********************************@l64g20 00hse.googlegroups.com:
On Sep 27, 6:04*pm, j...@angelsystems.co.uk wrote:
On Sep 27, 4:23*pm, lyle fairfield <lylef...@yah00.cawrote:
I believe CDONTS was Windows NT.
You may have success with CDO as per:
http://www.ffdba.com/downloads/Send_E-Mail_With_CDO.htm
--
lyle fairfield
Thank you Lyle. *I'll give it a try tomorrow.
Jeff B.
No luck, I'm afraid. *This is the code I tried (password etc changed,
of course):
==========================================Public Sub
SimpleSendMailWithCDOB() 'early binding
'requires reference to cdosys.dll
Dim iCfg As CDO.Configuration
'This where it fell over. Compile error at previous line!. *User-
defined type not defined
Dim iMsg As CDO.Message
Set iCfg = New CDO.Configuration
Set iMsg = New CDO.Message
With iCfg.Fields
* * .Item(cdoSendUsingMethod) = cdoSendUsingPort
* * .Item(cdoSMTPServerPort) = 587 * * * * * * * *'I use port 587
* * .Item(cdoSMTPServer) = "smtp.angelsystems.co.uk" * *'my server
* * .Item(cdoSMTPAuthenticate) = cdoBasic
* * .Item(cdoSendUserName) = "Jeff"
* * .Item(cdoSendPassword) = "*******"
* * .Item(cdoSendEmailAddress) = "me <me@myaddress>"
.Update
End With
With iMsg
* * .Configuration = iCfg
* * .Subject = "Test Late Binding"
* * .To = "me@myaddress"
* * .TextBody = "Test"
* * .send
End With
Set iMsg = Nothing
Set iCfg = Nothing
End Sub
=====================================
I have referenced Microsoft CDO 1.21 Library.
I also tried re-registering ... Regsvr32.exe "C:\windows
\system32\cdosys.dll" No luck there either.
I got the error message ... DLLRegisterServer in C:\windows
\system32\cdosys.dll failed. *Return code was 0x800704da.
I know that cdosys.dll is present in c:\windows\system32.
Anyone have a clue as to what's wrong?
Thanks in advance.
Jeff B.

fromhttp://support.microsoft.com/kb/171440

"The dynamic-link libraries (DLLs) for CDO (1.1, 1.2, 1.21) and CDO
Rendering (1.1, 1.2) are MAPI client object libraries. As such, they
require MAPI and service providers (for example, the same service
providers as with Microsoft Exchange Server).

Collaboration Data Objects for NTS (CDONTS) is a Simple Mail Transfer
Protocol (SMTP) based Messaging offering, which is part of the overall
CDO (1.1, 1.2) Library, but is not MAPI dependent.

Collaboration Data objects for Windows 2000 (CDOSYS), is a quantum leap
in SMTP Messaging over CDONTS. CDOSYS provides for rich content through
extensive MIME support."

-------

I suggest that you try the late-binding version.

--
lyle fairfield
Thanks again Lyle. I'll try the late binding.

Jeff B.
Sep 28 '08 #6
On Sep 28, 10:57*am, lyle fairfield <lylef...@yah00.cawrote:
j...@angelsystems.co.uk wrote innews:a3**********************************@l64g20 00hse.googlegroups.com:
On Sep 27, 6:04*pm, j...@angelsystems.co.uk wrote:
On Sep 27, 4:23*pm, lyle fairfield <lylef...@yah00.cawrote:
I believe CDONTS was Windows NT.
You may have success with CDO as per:
http://www.ffdba.com/downloads/Send_E-Mail_With_CDO.htm
--
lyle fairfield
Thank you Lyle. *I'll give it a try tomorrow.
Jeff B.
No luck, I'm afraid. *This is the code I tried (password etc changed,
of course):
==========================================Public Sub
SimpleSendMailWithCDOB() 'early binding
'requires reference to cdosys.dll
Dim iCfg As CDO.Configuration
'This where it fell over. Compile error at previous line!. *User-
defined type not defined
Dim iMsg As CDO.Message
Set iCfg = New CDO.Configuration
Set iMsg = New CDO.Message
With iCfg.Fields
* * .Item(cdoSendUsingMethod) = cdoSendUsingPort
* * .Item(cdoSMTPServerPort) = 587 * * * * * * * *'I use port 587
* * .Item(cdoSMTPServer) = "smtp.angelsystems.co.uk" * *'my server
* * .Item(cdoSMTPAuthenticate) = cdoBasic
* * .Item(cdoSendUserName) = "Jeff"
* * .Item(cdoSendPassword) = "*******"
* * .Item(cdoSendEmailAddress) = "me <me@myaddress>"
.Update
End With
With iMsg
* * .Configuration = iCfg
* * .Subject = "Test Late Binding"
* * .To = "me@myaddress"
* * .TextBody = "Test"
* * .send
End With
Set iMsg = Nothing
Set iCfg = Nothing
End Sub
=====================================
I have referenced Microsoft CDO 1.21 Library.
I also tried re-registering ... Regsvr32.exe "C:\windows
\system32\cdosys.dll" No luck there either.
I got the error message ... DLLRegisterServer in C:\windows
\system32\cdosys.dll failed. *Return code was 0x800704da.
I know that cdosys.dll is present in c:\windows\system32.
Anyone have a clue as to what's wrong?
Thanks in advance.
Jeff B.

fromhttp://support.microsoft.com/kb/171440

"The dynamic-link libraries (DLLs) for CDO (1.1, 1.2, 1.21) and CDO
Rendering (1.1, 1.2) are MAPI client object libraries. As such, they
require MAPI and service providers (for example, the same service
providers as with Microsoft Exchange Server).

Collaboration Data Objects for NTS (CDONTS) is a Simple Mail Transfer
Protocol (SMTP) based Messaging offering, which is part of the overall
CDO (1.1, 1.2) Library, but is not MAPI dependent.

Collaboration Data objects for Windows 2000 (CDOSYS), is a quantum leap
in SMTP Messaging over CDONTS. CDOSYS provides for rich content through
extensive MIME support."

-------

I suggest that you try the late-binding version.

--
lyle fairfield
Hooray! Late binding worked a treat. Free from Outlook at last.

Thanks for your patience Lyle, much appreciated.

Jeff B.
Sep 28 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: | last post by:
Hi Guys CDONTS works with all sites hosted on my test server bar one (which surely rules out a miscomputation of the Default SMTP server in IIS). I have tried uploading the file with make up...
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...
7
by: Mario Leduc | last post by:
Hi, I have a page that sends user comments with CDONTS, works fine. Until I put a URL (http://192.168.0.1). If I use http://domain.com it works fine. Why with the numeric URL, CDONTS does not...
2
by: Marty | 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: 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...
4
by: Dr. Harvey Waxman | last post by:
I guess I should change from cdonts to cdosys. Since I am ignorant about asp I hope you forgive this basic question. There are two asp files for handling mail, the one that gets the info from a...
4
by: Giorgio | last post by:
Hi, I'm working on this web space: NT4/Windows 98, Microsoft-IIS/4.0, 66.71.142.204 I can't send mail with CDO cause i get an error http://66.71.142.204/ASWebNews/newsletters/mail.asp <% Set...
7
by: Paul | last post by:
I have just started work on a system using CDONTS to mail out. Whilst this is fine on the server, my local development machine is using XP Pro with IIS5.1 installed. Is there a way I can get the...
0
by: jbguernsey | last post by:
I am hoping to be able to avoid the Outlook security problem by using CDONTS and I tried using the code below (with appropriate change to the address etc): Dim oEMail As New CDONTS.EMail ...
1
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: 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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.