Mails are sent as plain-text

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

Mails are sent as plain-text
 
Bjørn Rasmussen




Posts: 4
Joined: 2017-09-06
Dear ADX-Team.

I have an add-in working for several years, running on outlook versions 2007, 2010, 2013 and 2016.
The task of my add-in involves making duplicates of the email, and modifying the email's subject and attachments.
(but not the email-body).

Recently, a problem has occurred: Mails are sent as plain-text instead of HTML.

Customers reported that the problem started occurring after deploying Microsoft updates KB4011052 or KB4011078
on Outlook 2013/2016

I am using the latest version of Add-in Express for .NET.
The problem is also reported from customers running older versions.

I have found out, that adding the following 3 lines of code fixes the problem:

// get mail from saved copy
Outlook.MailItem templateItem = this.OutlookApp.CreateItemFromTemplate(messageFile.ToString()) as Outlook.MailItem;
// start of fix
string dummyBody = templateItem.HTMLBody;
templateItem.HTMLBody = "";
templateItem.HTMLBody = dummyBody;
// end of fix

One of our customers has reported the problem to Microsoft (they have other add-ins with the same problem), and I have been contacted by a Microsoft representative, who is very interested in resolving this issue.

My question is: Have you heard about this issue from other Add-in Express users (didn't find any on the forums) ?

Best regards
Bjørn Rasmussen
Posted 06 Sep, 2017 10:42:26 Top
Andrei Smolin


Add-in Express team


Posts: 18818
Joined: 2006-05-11
Hello Bjørn

We haven't been reported about this issue. There's no mention of it in our maul flow.


Andrei Smolin
Add-in Express Team Leader
Posted 07 Sep, 2017 09:57:24 Top
Bjørn Rasmussen




Posts: 4
Joined: 2017-09-06
Thank you for your reply.

Best regards
Bjørn Rasmussen
Posted 08 Sep, 2017 04:39:27 Top
Andrei Smolin


Add-in Express team


Posts: 18818
Joined: 2006-05-11
You are welcome!


Andrei Smolin
Add-in Express Team Leader
Posted 08 Sep, 2017 05:17:14 Top