SendMail with showDialog using CDO

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Steve

    SendMail with showDialog using CDO

    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 "MessageCla ss" 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
  • Val Savvateev

    #2
    Re: SendMail with showDialog using CDO

    Have you considered just using mailto protocol?

    "Steve" <steve21602@yah oo.com> wrote in message
    news:5b65a939.0 308112010.3c574 1e9@posting.goo gle.com...[color=blue]
    > 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 "MessageCla ss" 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[/color]


    Comment

    • Steve Long

      #3
      Re: SendMail with showDialog using CDO

      Steve,
      have you looked at this?

      Microsoft Visual Studio
      ..NET\Framework SDK\Samples\Tec hnologies\Inter op\Applications \CDO

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

      HTH
      Steve

      "Steve" <steve21602@yah oo.com> wrote in message
      news:5b65a939.0 308112010.3c574 1e9@posting.goo gle.com...[color=blue]
      > 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 "MessageCla ss" 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[/color]


      Comment

      Working...