Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / New Users / January 2004

Tip: Looking for answers? Try searching our database.

How to get the mail sender, receiver, CC, BCC names and mail id from C# or VB.NET?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ksskumar - 21 Jan 2004 06:43 GMT
Hi friends,

I am creating add ins for outlook in C#.  I try to store the email
details into database.

I can get the some of the details like Sendername, Receivedbyname, CC,
BCC, etc., from the mailitem object from the outlook object model.

The problem I find it is, if the sendar or receipient or CC or BCC ids
in the address book, the mailitem object return Name of the person
(NOT MAIL ID).  Otherwise it give the mailid (NOT THE NAME).  But I
need it both.

Is any way to get it both (Name and Mail id)?

AND Is any other way to access address book the outlook ?

Please let me know the posibilities.

Thanks in advance
Kumar
Dmitry Streblechenko \(MVP\) - 21 Jan 2004 07:31 GMT
For the sender e-mail, see
http://www.slipstick.com/dev/code/getsenderaddy.htm
For the To/CC/BCC recipient addresses, use MailItem.Recipients collection.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy  - Outlook, CDO
and MAPI Developer Tool

> Hi friends,
>
[quoted text clipped - 17 lines]
> Thanks in advance
> Kumar
Dirk Schaller - 31 Jan 2004 21:31 GMT
> Hi friends,
>
> I am creating add ins for outlook in C#.  I try to store the email
> details into database.

Hi Kumar,

I plan to do this too for contacts. Do you develop your add in as GPL?
I want to sync outlook with phpGroupware.

Dirk
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.