I have to build a Birthday BOT and email to every staff members using their details. I already completed the current date and birth date comparison part and need your guidance on below area,
(1). How to get the birthday wish template ( I already have birthday wish template and I want to get it and insert employee details and relevant photo)
(2). How to insert Name, Designation and relevant photo to the template.
I think for creating a birthday wish template u can html template
create the birthday wish template using html in notepad.
then read the notepad and then store in string
As sample u can use the below as template
<html>
<body>
<h2> Happy Birthday Name </h2>
</body>
</html>
now replace string data some data with Name, designation and photo [For photo i reccommened to use this activity : Send Inline Images in Outlook Email - RPA Component | UiPath Marketplace]. In above sample to replace Name, u can use string_var.replace(“Name”,Name) where Name is the variable which stores the name
Then send it