Send Email with Attachment

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

    #1

    Send Email with Attachment

    Is there a good code sample, in C#, showing how to send
    eamil with attachment, from a Windows Form like 'Send To'
    in Word, that will pickup Contacts in Outlook/Exchange
    2000.

    I have searched all known sources.

    Can someone please help.

    Regards,
    Fred.


  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: Send Email with Attachment

    Fred,

    There is nothing in the framework that is going to pick up your contacts
    in Outlook/Exchange. If you want to do this, then you will have to use
    interop to access the Outlook object library, or you will have to make calls
    to MAPI. This will be able to give you the contacts that you are looking
    for.

    Additionally, you can send an email with an attachement by using the
    classes in the System.Web.Mail namespace.

    Hope this helps.


    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "Fred" <fred@fsparker. com.au> wrote in message
    news:080801c3b8 3f$1351bc40$a00 1280a@phx.gbl.. .[color=blue]
    > Is there a good code sample, in C#, showing how to send
    > eamil with attachment, from a Windows Form like 'Send To'
    > in Word, that will pickup Contacts in Outlook/Exchange
    > 2000.
    >
    > I have searched all known sources.
    >
    > Can someone please help.
    >
    > Regards,
    > Fred.
    >
    >[/color]


    Comment

    • Raji

      #3
      Re: Send Email with Attachment

      Hi Fred,

      There are a lot of code snippets available which will
      enable u to do the same in codeproject. Why Don't chkeck
      those out?

      Raji
      [color=blue]
      >-----Original Message-----
      >Fred,
      >
      > There is nothing in the framework that is going to[/color]
      pick up your contacts[color=blue]
      >in Outlook/Exchange. If you want to do this, then you[/color]
      will have to use[color=blue]
      >interop to access the Outlook object library, or you[/color]
      will have to make calls[color=blue]
      >to MAPI. This will be able to give you the contacts[/color]
      that you are looking[color=blue]
      >for.
      >
      > Additionally, you can send an email with an[/color]
      attachement by using the[color=blue]
      >classes in the System.Web.Mail namespace.
      >
      > Hope this helps.
      >
      >
      >--
      > - Nicholas Paldino [.NET/C# MVP]
      > - mvp@spam.guard. caspershouse.co m
      >
      >"Fred" <fred@fsparker. com.au> wrote in message
      >news:080801c3b 83f$1351bc40$a0 01280a@phx.gbl. ..[color=green]
      >> Is there a good code sample, in C#, showing how to send
      >> eamil with attachment, from a Windows Form like 'Send[/color][/color]
      To'[color=blue][color=green]
      >> in Word, that will pickup Contacts in Outlook/Exchange
      >> 2000.
      >>
      >> I have searched all known sources.
      >>
      >> Can someone please help.
      >>
      >> Regards,
      >> Fred.
      >>
      >>[/color]
      >
      >
      >.
      >[/color]

      Comment

      Working...