Sender Email Address

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

Sender Email Address
 
Tony Hunt




Posts: 13
Joined: 2011-06-10
I'm sorry this is such a trivial query but Please put me out of my misery.

I can't find the email address of the sender anywhere, obviously it's such a fundamental element of an email that it must be easily available.

I can see MailItem.SenderName but that only retrieves the real name, not the email address.

The outlook email viewer shows it in this format "Tony Hunt [Tony@ratsoft.co.uk]"

That would be fine..

Best Wishes

Tony Hunt
Posted 09 Sep, 2011 23:31:47 Top
Andrei Smolin


Add-in Express team


Posts: 18830
Joined: 2006-05-11
Hi Tony,

Please have a look at http://support.microsoft.com/kb/324530.

Since Add-in Express for VCL uses the type library of Office 2000 (you have installed 'Office 2000 Sample Automation Server Wrapper Components'), you can access the SenderEmailAddress property if your add-in is loaded in Outlook 2003 or higher (see OutlookApp.Version); you access SenderEmailAddress via late binding.


Andrei Smolin
Add-in Express Team Leader
Posted 12 Sep, 2011 01:45:41 Top
Tony Hunt




Posts: 13
Joined: 2011-06-10
Hi Andrei,

Unfortunately that link is for Visual Basic not Delphi.

However, after a little searching I found this sample for Delphi from 5 years ago.

http://www.add-in-express.com/projects/getsenderemailexample_d7.zip

This works well, perhaps you should distribute the entire contents of the projects it might save a lot of questions.

Best Wishes

Tony Hunt
Posted 12 Sep, 2011 03:20:16 Top
Andrei Smolin


Add-in Express team


Posts: 18830
Joined: 2006-05-11
Thank you for the suggestion!


Andrei Smolin
Add-in Express Team Leader
Posted 12 Sep, 2011 03:29:53 Top