Library code snippets

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 Microsoft.com, 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.

Comments

  1. 27 Aug 2007 at 19:01
    I'm newere here, so sorry if I culdn't make a question on a old topic.
    But it looks very useful for my application and I didn't undertood how to configurate correctly it, because I want something to send an automatic e-mail, just to alert someone about an action that happened in the application, and I have now idea about how to fill SMTP Server, Source E-mail and Dysplay From boxes.
    I would be thanked if someone could help me.
    thks




  2. 07 Jul 2006 at 13:59

    hi,

    it asks SMTP server name and source e-mail. can you please tell me how to fill these textboxes or is there any way to dont ask the user these two things because ithink most simple users of internet will not be able to fille them if there is any universal value for them or there is any possiblity to avoid these two values then please tell me it will be very helpful for me

    REGARDS

  3. 01 Jan 1999 at 00:00

    This thread is for discussions of Send Email Using CDO.

Leave a comment

Sign in or Join us (it's free).

Mike Gagne Current Occupation: consultant; Degrees: BS-Computer Science, BS-Mathematics, Japanese minor; Known Languages: C#, ASP.NET, WPF, PHP, SQL, C++, VB

Related discussion

Related podcasts

  • Christian Beauclair

    14 mai 2008 (�mission #0074) ::.Christian Beauclair: Stratégies de migration VB6 vers .NET Nous discutons avec Christian Beauclair des stratégies de migration VB6 vers .NET. Entre autres, nous discutons comment utiliser le "VB 6 Code Advisor" et le "Interop Forms Toolkit" pour ajouter la puiss...

Want to stay in touch with what's going on? Follow us on twitter!