franck DAMMANN
Posts: 41
Joined: 2021-01-26
|
Dear all,
In my plugin I update the HTMLBody (adding extra text) in different events (NewItem, InlineResponse) but when I add my extra text into adxOutlookAppEvents1_ExplorerInlineResponse the extra text is not displayed but if I pop out the email (isolate button) I can see my extra text...
It seems that HTMLBody is not refreshed...
here is my code snippet:
private void adxOutlookAppEvents1_ExplorerInlineResponse(object sender, object itemObject)
{
if (itemObject is Outlook._MailItem)
{
outlookItemEvents.ConnectTo(itemObject, true);
Outlook._MailItem mailItem = (Outlook._MailItem)itemObject;
if (!mailItem.Sent)
{
mailItem.HTMLBody += "Just for test";
mailItem.Save();
}
}
}
May be I'm missing something ? Do I need to refresh mailItem content ?
Thanks,
Franck. |
|
Andrei Smolin
Add-in Express team
Posts: 18652
Joined: 2006-05-11
|
|