Blue prism send html in mail body
A specific question!
Blue Prism is a business process automation and RPA (Robotic Process Automation) software. To send an HTML email with a mail body, you can use the Send Email
activity in Blue Prism.
Here's a step-by-step guide to help you achieve this:
- Create a new email activity: In your Blue Prism process, drag and drop the
Send Email
activity from theActivities
pane to theProcess
pane. - Configure the email settings: In the
Send Email
activity, configure the following settings:To
: Enter the recipient's email address.Subject
: Enter the subject of the email.Body
: This is where you'll insert the HTML code. You can use theInsert HTML
button to insert the HTML code.
- Insert HTML code: Click the
Insert HTML
button and paste your HTML code into theBody
field. You can use HTML tags, such as<p>
,<img>
,<table>
, etc., to format your email body. - Use a variable to store the HTML code: If you want to store the HTML code in a variable, you can use the
Set Variable
activity to set a variable, sayhtmlBody
, with the HTML code as its value. - Use the variable in the email body: In the
Send Email
activity, use thehtmlBody
variable in theBody
field by clicking theInsert Variable
button and selecting thehtmlBody
variable. - Send the email: Click the
Send
button to send the email with the HTML body.
Here's an example of how your Send Email
activity might look:
<Send Email>
<To>[email protected]</To>
<Subject>Email with HTML body</Subject>
<Body>
<![CDATA[<html><body><p>This is an email with an HTML body.</p><img src="https://example.com/image.jpg"></body></html>]]>
</Body>
</Send Email>
In this example, the Body
field contains HTML code wrapped in CDATA tags (<![CDATA[]]>
) to prevent Blue Prism from interpreting the HTML code as XML.
By following these steps, you should be able to send an HTML email with a mail body using Blue Prism.