Email Automation based on different formats of email body

how can we format email bodies differently based on recipients (eg employee vs manager) before sending them using best practices

You can create an email body based on the specified condition, store it in a variable, and use that variable to send the email to the recipient. Alternatively, you can utilize the switch case activity to handle multiple scenarios, such as sending emails to HR, Managers, Employees, and others, in a more structured and efficient way.

Conditional Based Example:

Package Used: UiPath.Mail.Activities

@SRASHTI_PATIL

Have the email bodies all you need in config

Then based on recipient type decide which value to pick

If you get the type directly in some variable or so like manager or employee then in config have the key as manageremail and employeeemail…and in process use in_config(TypeVariable + "email").Tostring which would pick the respective email bodies

Cheers

@SRASHTI_PATIL find any key value to differentiate the employee vs manage in the email content.

based on that key value, you can send the emails

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.