Send Email with Attachment

  • Thread starter Thread starter Fred
  • Start date Start date
F

Fred

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.
 
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.
 
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
-----Original Message-----
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]
- (e-mail address removed)

Fred said:
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.


.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top