SendMail with showDialog using CDO

  • Thread starter Thread starter Steve
  • Start date Start date
S

Steve

Hello,

I am developing a C# application that needs to interface with email.
Specifically, I want to be able to send an email where the UI dialog
for the default email client (Outlook, OE, etc.) pops up and allows
the user to type in email addresses, etc. When the user hits send, I
want the email to automatically be sent (and not stay in the Outbox).

While perusing the documentation for CDO I have become aware of the
DeliverNow method for the Session object as well as the Send method
for the Message object (with the "showDialog" parameter). These would
seem to be my answers.

However, where I'm running into problem is understanding how to access
these objects/methods from C#. I have added a reference to
"cdoex.dll" to my project which gives me the "CDO" namespace as well
as the "Message" and "MessageClass" interface/class. However, the
Send method takes no arguments (specifically, there is no way to
specify "showDialog") nor do I see a Session class or DeliverNow
method.

I would appreciate any assistance in better understanding how I access
this functionality from C#.

Thanks,

Steve
 
Steve,
have you looked at this?

Microsoft Visual Studio
..NET\FrameworkSDK\Samples\Technologies\Interop\Applications\CDO

There is also an SmtpMail class but I don't think it's going to get you
outlook interface.

HTH
Steve
 
Back
Top