How to find current user's email address?

Add-in Express™ Support Service
That's what is more important than anything else

How to find current user's email address?
 
Erkut Sanda




Posts: 5
Joined: 2006-01-24
Hi,

I'm writing an Outlokk Add-In with ADX.NET. I want to find current user's SMTP address. Session.CurrentUser.Address property gives me X400 address of the user.

How can i resolve this?

Environment:
ADX.NET v2.2
VS.Net 2003 (C#)
Outlook 2003
Exchange Server 2003
Posted 25 Jan, 2006 07:56:03 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Erkut.

I will send you an example soon.
Posted 25 Jan, 2006 14:56:30 Top
Erkut Sanda




Posts: 5
Joined: 2006-01-24
Hi,

I need also MessageID generated by Exchange when sending mail.
Posted 26 Jan, 2006 07:09:58 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Erkut.

You can download an example using the following link:
http://www.add-in-express.com/projects/olgetsmtpaddressexample.zip
I use Extended MAPI to get the SMTP address in this example.

I need also MessageID generated by Exchange when sending mail.

Do you mean the entry ID of the message? If so, you can get it via the EntryID property of the Outlook._MailItem interface.
Posted 27 Jan, 2006 13:31:46 Top
Erkut Sanda




Posts: 5
Joined: 2006-01-24
Sergey Grischenko wrote:
Do you mean the entry ID of the message? If so, you can get it via the EntryID property of the Outlook._MailItem interface.


I meant message-id header that generated by Exchange. And after this submittion, i found the answer: It's not possible. Because message-id generated while sending message by Exchange. While customizing message in Outlook, it's not generated yet.

Thanks for the example.
Posted 30 Jan, 2006 08:55:25 Top