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