How to write "bold" format in smtp body property in uipath?

HI,
I want to draft a mail, and in draft mail, I want some text in bold format.
Is it possible in smtp activity in property of body to write some text in bold format?

like:-
First Name Last Name
ZZZ AAA
XXX YYY

1 Like

Hi,

Enable the IsBodyHTML property and then you can simply wrap the words you want with bold with
"<b>First Name Last Name</b>"

br,
Topi

3 Likes

Thanks @Topi , Its working.

One more thing, how to space between two strings in body property in smtp activity.
like:-
zzz"TABspaceTABspace"aaa
xyz"TABspaceTABspace"abc

Hi,
if you don’t want to go with CSS styles then a crude solution would be something like this:

Insert white space of different widths. You can insert a longer space by using any one of the following options:[3]
Two spaces - Type in &ensp;
Four spaces - Type in &emsp;
Tab - Type in &nbsp;&nbsp;&nbsp;&nbsp;

source:

@Topi

in that case it gives an error.

Keep it inside the quotations.

@Topi,

I tried that, it is create a string like:- ZZZ&nbspAAA
XYZ&nbspABC

Any solution for same???

Thanks.

You are missing ; character.
Try this in your body:
"<b>First Name Last Name</b><br>ZZZ&nbsp;&nbsp;&nbsp;&nbsp;AAA<br>XXX&nbsp;&nbsp;&nbsp;&nbsp;YYY"

<br> is a line change in HTML

Check this out for additional info:

You might want to use a table since it looks like a tabular format anyhow:

@Topi,

Input like this:-image

and output:-
First Name Last Name Email
ZZZ &nbsp AAA abc@def.com
XXX YYY ccc@ddd.com

it is not work. It only write between two strings.

Are you not seeing my earlier reply ?

@Topi Thanks,
Sorry I forgot to write semicolon after that so.
once again Thanks for replying.