HTML issue with the send outlook email

Hi there, so I need to send an outlook mail, and the body will contain text and images. For that I’m using the IsBodyHTML option that has the activity. The problem is that my text is a script that contains multiple lines. When I recieve the email, the text is wrapped.

Example:
strScript=
“This is the structure,
of my script,
and I need it
To be like this.”

But what I recieve in the email body is:
strScript=
“This is the structure, of my script,
and I need it To be like this.”

When I disable the IsBodyHTML option, I recieve the text the way I want it, but then I don’t have the image. So I guess I can use some HTML that won’t change my text…

Thanks

@jadbenn
with the isBodyHTML option text is recognized as htmlit does. Give a try on surrounding the text with
<pre>your text </pre>

1 Like

Worked perfectly, Thanks!

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