TMailItem Senders email

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

TMailItem Senders email
 
Antonio del Pino




Posts: 2
Joined: 2005-07-18
Hi

How can I know the sender's email

if OutlookApp.ActiveExplorer.Selection.Count > 0 then
OutlookApp.ActiveExplorer.Selection.Item(1).QueryInterface IID__MailItem, MItem);
if Assigned(MItem) then
try
FMail := TMailItem.Create(nil);
FMail.ConnectTo(MItem);
String1 := FMail.SenderName;
String2 := FMail.Senderemail; ???

Thanks in advance
Posted 18 Jul, 2005 20:08:41 Top
Dmitry Kostochko


Add-in Express team


Posts: 2741
Joined: 2004-04-05
Hi Antonio,

The SenderEmailAddress property exists in the Outlook 2003 Object Model only. You should use CDO or Extended MAPI to get this property in Outlook 2000 and XP.
Posted 19 Jul, 2005 04:15:22 Top