Not able to get the CSS styles in mail body

Hello team,

I am actually trying to send an email for approval or rejection purposes to certain members. I built HTML code with the help of W3 schools, but when I try to implement the same in UiPath, styles are changing.

Please let me know if you have any ideas.
HTML Code:

.button {

background-color: #04AA6D;
border: 2px solid #04AA6D;
padding: 15px 42px;
text-align: center;
font-size: 16px;
margin: 4px 6px;
color: white;
}

Dear Manager,


I am waiting for your approval for the invoice whose information I have shared below.

Document Date : 1234
ObjKey : 1234
is the invoice eligible for approval?

<button class=“button” style=color: white;>Approve :heavy_check_mark:

        <a href="mailto:?subject={1} {2} Approval &body=$Approved,Document Date : {0}, ObjKey : {1}, Document Type: {2}

$"target=‘_blank’ style=‘padding: 8px 12px; font-size: 14px;
text-decoration: none;font-weight:bold;’><button class=“button” style=color: white;>Approve :heavy_check_mark:

Hi @Davuluri_Manikumar

You can simply use Create HTML content activity

I tried in all possible ways, but I am still not getting in the expected way.

image

this is how i want as output

but i am getting AS
image

@Davuluri_Manikumar

Use Create html content activity.

@Davuluri_Manikumar

Please check on this

when working with Create HTML Content, the content is stored within a file. We can check the location by:
grafik

Can you please share this file with us. Thanks

How can we use mail activites in this activity ?

we pass the result to a mailing activity under the body setting

@Davuluri_Manikumar

The create html content result is passed in a send outlook mail message activity body

yea , i do have the HTML content , i no need to create it again