Karim
Posts: 170
Joined: 2006-01-02
|
Hi,
on adxOutlookAppEvents1ItemSend event i want to catch SenderEmailAddress but in Office 2010 SenderEmailAddress return Empty value
in Office 2013 this value is not empty
//....
IMail := Item as MailItem;
Inspector := OutlookApp.ActiveInspector;
if (assigned(Inspector) and assigned(Inspector.CurrentItem)) then
begin
Inspector.CurrentItem.QueryInterface(IID__MailItem, IMail);
end;
ol2010:= self.OutlookApp.Application as Outlook_Tlb._Application;
strSenderEmailAddress := IMail.SenderEmailAddress
showmessage(IMail.SenderEmailAddress);
I need SenderEmailAddress because i want filter item in send folder after item send like this
str_fltr :='[SenderEmailAddress] = "' + strSenderEmailAddress + '"';
ol2010objFolder.items.Restrict(str_fltr); |
|
Andrei Smolin
Add-in Express team
Posts: 19138
Joined: 2006-05-11
|
Hello Karim,
Karim writes:
on adxOutlookAppEvents1ItemSend event i want to catch SenderEmailAddress but in Office 2010 SenderEmailAddress return Empty value
I recommend that you make sure that the property is empty due to using Outlook 2010 (is it properly updated?) and not due to using a MAPI Store Provider such as GMail, HotMail, etc.
You would look into retrieving the email address using MailItem.SendUsingAccount (Outlook 2007+) and Account.SmtpAddress (Outlook 2007+).
Andrei Smolin
Add-in Express Team Leader |
|
Karim
Posts: 170
Joined: 2006-01-02
|
Hi,
If I understand the SenderEmailAddress property should not be empty
and this is probably due to the need to update Office 2010? |
|
Andrei Smolin
Add-in Express team
Posts: 19138
Joined: 2006-05-11
|
|