By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,610 Members | 2,155 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,610 IT Pros & Developers. It's quick & easy.

Send Email with Attachment

P: n/a
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.
Nov 15 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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]
- mv*@spam.guard.caspershouse.com

"Fred" <fr**@fsparker.com.au> wrote in message
news:08****************************@phx.gbl...
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.

Nov 15 '05 #2

P: n/a
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 contactsin Outlook/Exchange. If you want to do this, then you will have to useinterop to access the Outlook object library, or you will have to make callsto MAPI. This will be able to give you the contacts that you are lookingfor.

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

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Fred" <fr**@fsparker.com.au> wrote in message
news:08****************************@phx.gbl...
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.

.

Nov 15 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.