HTMLBody in the New Mailitem activity

What is the best way to fill HTMLBody field in the New Mailitem activity?
For example, i have next html code to the email body:

<div style="font-size: 12.0pt; font-family: Calibri">
Hello.<br/><br/>
Data for 2024.09.16:<br/><br/>
<img src="cid:c:\Temp\2024.09.16.png"><br/><br/>
<font color="#FFCC00"><b>&#8211;&#8211;&#8211;&#8211;</font><br/>
<i>Best regards,<br/>
Alex
</b></i>
</div>

I cannot simply paste it as a string variable. What are my options?

You could use a variable, but you do not have to.
You need to “escape” the string, something like

"<div style=""font-size: 12.0pt; font-family: Calibri"">" &
"Hello.<br/><br/>"

Yes, that’s working. For a predefined template it is not a problem to add finite number of escape characters. Thanks.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.