Please guide me about html in uipath

Please guide me about html in uipath

In activity Send Outlook Mail Message.
I want in body mail is below

Dear Colleagues,
I write inform you about…

( I want paragraph in line 2 , Please guide me about it)

@fairymemay Do you want it in this way :
Capture

Write message in html and use IsBodyHtml property check
and use it in body

Here you will get more info
https://email.uplers.com/blog/step-step-guide-create-html-email/

Hi @fairymemay,

You can simple use vbCrLf (newline specifier)
like this —> "Dear Colleagues," +vbCrLf+"I write inform you about…"

OR

you can create html body
"Dear Colleagues,<br><br>I write inform you about…"
here you have to check IsHtmlBody property

“Dear Colleagues,” +
"
I write inform you about… "+


Paragraph2 in second line”+

Like above you can assign into one message_body variable with assign activity and then you can use the for sending email

yes.

@samir I use "Dear Colleagues," +vbCrLf+"I write inform you about…"

image

image

but not have paragraph.

sampleHtmlBody.txt (152 Bytes)

Please assign the content in a variable with Assign activity and try it once

Now it show.
image

but I want below

image

@fairymemay Try this :

“Dear Colleagues<br><br><p style = ‘text-indent : 5em;’> I will Inform you about</p>”

with IsBodyHtml Property to True

@supermanPunch I think

is not work.

image

image

@fairymemay It Worked for me actually :sweat_smile: , Can you type the Text that I have sent, instead of Copy paste and check if it works.

@supermanPunch I use text from you send but same.

@fairymemay Yes. If you Copy and paste the Whole Text it Won’t Work. Just Copy the Text Inside the Double Quotes and Paste it as a String inside the Body Property of Send Outlook Mail Message Activity

@supermanPunch If use text inside double quotes is error.

image

@fairymemay Add double Quotes at the Start and the End. It Should look like the Below Image.

1 Like