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
|
|
Dmitry Kostochko
Add-in Express team
Posts: 2880
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.
|
|