Article ID: 161833 - Last Review: October 1, 2005 - Revision: 3.3 How to send mail from Visual Basic using CDO 1.x LibraryThis article was previously published under Q161833 On This PageINTRODUCTION
This article describes how to programmatically send an e-mail message from Visual Basic by using the Collaboration Data Objects (CDO 1.x) Libraries. This example assumes that the CDO 1.x was correctly installed on your computer.
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
171440
(http://support.microsoft.com/kb/171440/
)
Where to acquire the CDO Libraries (all versions)
The sample code can also be used from Visual Basic for Applications (VBA), which allows Access, Excel, or Project to send e-mail messages through the CDO 1.x Library.
MORE INFORMATION
With the CDO 1.x library, you can quickly and easily add e-mail
capabilities to your Visual Basic application. These capabilities include sending and receiving e-mail messages and interacting with folders and address books. You can create programmable messaging objects, and then use their properties and methods to meet the needs of your application. The objects and methods exposed by the CDO 1.x library are much fuller than the MAPI controls that ship with Visual Basic. As a result, you will have access to many MAPI properties that the MSMAPI OCX controls simply do not address. Sample codeTo build a Visual Basic project that sends a simple message, follow these steps:
APPLIES TO
| Article Translations
|

Back to the top
