You can automate sending out-of-the-box emails using Email Connector based on the events and schedules defined by your workflows.
Workflows require certain permissions to run actions on your behalf. Other permissions are required by actions that come bundled with Email Connector.
To fine-tune permissions granted to Workflows
email:emails:send
For more on general Workflows user permissions, see Expression reference.
Trial environments are prohibited to send emails with Email Connector.
Email Connector sends emails from no-reply@apps.dynatrace.com
email address. We recommend whitelisting the domain to avoid emails being redirected to the junk folder.
To format the body of an email
Select Message.
Enter your text.
When you select, for example, the bold style, your text is rendered as bold in the sent email. You won't be able to preview it without the formatting symbols. However, when you send an email, the recipient will see the properly formatted text, and the formatting symbols won't be visible.
You can use the toolbar to insert common elements like a heading, bold text, or a link.
Attaching an image or inserting JavaScript code into the email body is impossible. It's just shown as plain text.
Wrap text in single asterisks (*like this*
) to get italics like this.
Wrap text in double asterisks (**like this**
) to get bold text like this.
Wrap text in double tildes (~~like this~~) to get strikethrough (crossed out) text like this.
Wrap text in backticks (`like this`) to get bold text like this
.
Wrap text in triple backticks (```like this```) to show a code block (multiple lines of code text
).
To add a heading, start the line with the #
character like this: # This is your heading text
.
To visually separate sections of your annotation, add a horizontal line with three dashes (---
):
Each line of an unordered (bulleted) list starts with an asterisk (*
):
* Line 1* Line 2
Alternatively, you can use a dash (-
):
- Line 1- Line 2
An ordered (numbered) list starts with a number and a period (1.
) followed by a space and then your text:
1. The first line of my procedure.2. The second line of my procedure.3. The third line of my procedure.
To add a table, define the headers, the column formatting row, and then the rows of data you want to display
| Header 1 | Header2--- | ---content2 | content2
To link to a website, use this format:
[Example text label](https://www.example.com)
Here's a link to the [Dynatrace website](www.dynatrace.com).
To add a single line break and a new line, select Enter in the Message field of the Connector.
This Connector only allows formatting of the message body using the listed formatting options. It doesn't offer support for HTML.
You must enter at least one and a maximum of ten recipients in one of the fields (to, cc, bcc).
If you are using expressions for the recipients, the expressions must be evaluated as a list of email addresses, for example, ["user1@domain.com", "user2@domain.com"]
.
The Send email action provides the following result.
Property
Description
requestId
A unique identifier to trace successfully accepted email send requests.
clientRequestId
A unique identifier to trace successfully accepted email send requests. For sending emails, this is identical to requestId
.
This message is related to missing permissions or a trial environment as described above in Grant permissions to Workflows.
When sending an object or non-string data as message content, ensure it is properly formatted as a string.
The recommended approach is to wrap your input in an expression and convert it to a JSON string using the to_json
filter:
{{ result("run_javascript_1") | to_json }}
This approach ensures your data is properly formatted for transmission. For more information, see Expression reference.