Send Email Using CDO

Illustrated in this example is a simple emailer that supports attachments.

In order to use the code provided in the sample project, you must have CDOEX.DLL.  I am not sure if I'm authorized to provide this with the project, so, to be on the safe side, I won't.  You can download the CDO Libraries from, however.  CDOEX.DLL is Microsoft CDO for Exchange 2000 Object Library.

In addition to CDOEX.DLL as a reference, I used two components for convenience's sake: Microsoft Common Dialog Control and Microsoft Windows Common Controls 6.0.

I hope you find this small sample as useful as I do.

You might also like...


Michael Gagne Current Occupation: Software Consulting Manager Degrees: BS-Computer Science, BS-Mathematics, Japanese minor Known Languages: C#, ASP.NET, MVC, WPF, PHP, SQL, C++, VB


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“The question of whether computers can think is just like the question of whether submarines can swim.” - Edsger W. Dijkstra