Send Email (Microsoft Outlook 365) changes HTML in Body

I’m testing the Send Email activity using Integration Services to see if we should switch our template and future automations to this instead of Send SMTP Email.

UiPath.Mail.Activities 2.7.12
UiPath.MicrosoftOffice365.Activities 2.7.24 (I also tried 3.7.10)
UiPath.Mail.Activities 2.7.12

When I put some HTML directly into the Body field:

Save, close, and reopen the XAML file and the HTML has been changed:

Please stop making these fancy UI fields, it causes more work and is harder to make dynamic.

Same is true for the To field:

image

I don’t need this. We don’t hard-code email addresses. Does anyone?

And of course, expecting it to just be a string I typed “paul.ostwick@firsthorizon.com” and it took it as including the quotes in the email address:

image

Just a box to type expressions into is all I need. I don’t need these interactive UI fields. We could already use variables if we wanted - and we usually do.

For the Body, we typically use a combination of variables and hard-coded HTML but now we have to compile all that into a variable first and then use that single variable in the Send Email activity because it won’t leave my HTML alone.

To add, the same is the case with Gmail activities as well as far as HTML formatting is considered

For the To field, thats just a visual thing, you can switch to the expression editor at any time. Its kind of a default thing on lots of fields that are lists of strings or similar to allow you to easily type in the list manually without needing to declare the string list or array.
Since you can switch to the other view I don’t think its an issue and just something for you to adjust to.

The body thing, thats a worse issue, and one that cant actually change the formatting or text as it converts incorrectly. I agree this is not desired behaviour at all.

I reported this as a bug several years ago demonstrating the values ‘mutating’ into incorrect ones and losing the formatting and I thought they had removed it, annoying if they haven’t. The workaround to stop it is to assign the body to a variable and just pass the variable to the activity so it cannot corrupt it.