I want to send Email template attachment code under UI path SMTP send mail activity Body, I have d tried several ways of doing but I failed . Appreciate your kind attention on this regards
Here attached my sample “html code”
test.html (4.4 KB)
Have you set IsBodyHtml to True?
If it solves your problem, kindly mark this post as solution to close this topic.
If you need extra help and/or have any question, please let me know
Hi Gustavo, Yes I did ! , the thing is I have no Idea to how to put the html code to “Send SMTP Mail Message” Body , its get error when html code insert.
Pls pls refer to the attachment.
Hi @Duleepa_Krishan, UiPath string cannot take multi-line text as a string value.
Save your HTML in the text file and read using the Read Text File activity.
One more solution is using Create HTML Content activity. Check out Create HTML Content
Hi Rajesh, thanks for your reply, I did as you suggested under read text file activity and it will not work its out put same html code .
And I don’t have an idea to perform the HTML content activity part will you able to help on this matter pls .
Thanks in advance
Actually, the real problem is your HTML code.
Use a Read Text File activity and point to a html file that the content is only:
<h1 style="color:Tomato;">Hello World</h1>
Then store it in a variable and use as input in the Send SMTP Mail Message activity and set the property IsBodyHtml to True.
You will see that you will receive the email as expected.
So, I suggest you review your HTML file.
Work Done Thanks Gustavo and much appreciate !
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.