Hi everyone could you please assist here, I have email body text, it was a plain text at first but now I want to make certain text bold, some with color.
Now this is what I have tried but it contains some errors.
Hi everyone could you please assist here, I have email body text, it was a plain text at first but now I want to make certain text bold, some with color.
Now this is what I have tried but it contains some errors.
Please try using create html content activityâŚit is simple to use and interactive. output of it can be used in email body
https://docs.uipath.com/activities/other/latest/user-guide/create-html-content
Cheers
Hi @Anil_G
Alright thank you let me try it out
Try using the Send outlook Mail Messages activity and in the properties panel please tick the checkbox isBodyHtml and write your code in the body. I have attached screenshot for your reference.
Hope it helps!!
Regards,
There are 2 ways you can do this,
<p style="""font-size:14px; color:#FF0000;""">
Thanks
I saved the html content in a variable then used it in the email body, please see below :
It throws this error
Are you attaching any file?looks like path provided is wrongâŚcan you check please
Cheers
Hi @Anelisa_Bolosha ,
Try giving the full path of this file.
Because if itâs not in your Projectâs local folder, the code wouldnât be able to find it.
Try creating a Variable: in which youâll be storing the full path of this excel file and then pass that filePath variable here in as an attachment.
Thanks!
If the file is present in project folder then give like this
Path.Combine(Environment.CurrentDirectory,"Credico_Report_" + year + Month + Day + ".xlsx")
And I hope the file name is proper
If it is in some other folder then change accordingly
Environment.CurrentDirectory will give the current project folder value
Hope this helps
Cheers
Itâs all good now thank you, I saw that I didnât have âwrite rangeâ activity so it wasnât creating the resulted excel file to be attached
This worked well and is very simple to edit, greatly appreciate it
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.