Event when sender email is changed not working on Office 2007

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

Event when sender email is changed not working on Office 2007
 
Thomas Darde




Posts: 14
Joined: 2016-07-05
Dear support,

We have an addin express working well on Outlook 2010, 2013 and 2016. However, we face some issues when the email address is changed in Outlook 2007,

We have an event that should be triggered every time the sender is changed. On Outlook 2010, 13 and 16, this code is working:

        public override void ProcessPropertyChange(string property_name)
        {
            try
            {
                LogHelper.Instance.Log(string.Format("A property has changed : {0}", property_name), Severity.Info);
                if (property_name == "SentOnBehalfOfName")
                {
                    if (this.ItemObj is Outlook._MailItem)
                    {
                        Outlook.MailItem mailOpen = (Outlook.MailItem)ItemObj;
                        if (mailOpen.Sent == false)
                        {
                            LogHelper.Instance.Log("Mail sent is false", Severity.Info);
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                LogHelper.Instance.Log(String.Format(
                    "ProcessPropertyChange - Exception with msg={0} and stacktrace={1}", ex.Message, ex.StackTrace), Severity.Error);
            }          
        }


But on Outlook 2007, the event is never triggered. How can I know that the sender has been updated on 2007?
Thanks a lot for your help
Posted 14 Sep, 2016 21:56:43 Top
Andrei Smolin


Add-in Express team


Posts: 18818
Joined: 2006-05-11
Hello Thomas,

Does the event occur if you save the modified item? If yes, then you've connected to this event correctly and there's nothing you can do about the issue as the PropertyChange event is the only way to get informed about such a change.


Andrei Smolin
Add-in Express Team Leader
Posted 15 Sep, 2016 07:27:32 Top
Thomas Darde




Posts: 14
Joined: 2016-07-05
Yes the event is well connected because the event is triggered when some other properties are changed. But when the sender is changed, nothing is triggered.

Also, I have used OutlookSpy to see all the event triggered and it seems that this event is never triggered.
I am afraid that I cannot do better on Outlook 2007 ...

Thanks
Posted 16 Sep, 2016 00:15:57 Top
Andrei Smolin


Add-in Express team


Posts: 18818
Joined: 2006-05-11
Hello Thomas,

I don't see a way to make this work, either.


Andrei Smolin
Add-in Express Team Leader
Posted 16 Sep, 2016 02:48:44 Top