Workflow
Email SMTP - Modular Automations
Overview
The integration of Itential and email enables network teams to utilize SMTP to build automations that can include common tasks for sending emails. This is a library of related automations that can be used as modular components in your own larger, end-to-end workflows.
Workflows
Name | Overview |
---|---|
Send Email - SMTP | Send email with options |
For further technical details on how to install and use this Workflow Project, please click the Technical Documentation tab.
Table of Contents
Getting Started
This section is helpful for deployments as it provides you with pertinent information on prerequisites and properties.
Helpful Background Information
Workflows often include logic that varies from business to business. As a result, we often find that our Workflow Projects are more useful as modular components that can be incorporated into a larger process. In addition, they often can add value as a learning tool on how we integrate with other systems and how we do things within the Itential Automation Platform.
While these can be utilized, you may find more value in using them as a starting point to build around.
Prerequisites
Itential Workflow Projects are built and tested on particular versions of IAP. In addition, Workflow Projects are often dependent on external systems and as such, these Workflow Projects will have dependencies on these other systems. This version of Email - SMTP has been tested with:
- IAP 2023.2
External Dependencies
Name | OS Version | API Version |
---|---|---|
Email server, such as Microsoft Outlook |
Adapters
Name | Version | Configuration Notes |
---|---|---|
adapter-email | 4.6.0 |
How to Install
To install the Workflow Project:
- Verify you are running a supported version of the Itential Automation Platform (IAP) as listed above in the Supported IAP Versions section in order to install the Example Project.
- Import the Example Project in Admin Essentials.
Testing
Cypress is generally used to test all Itential Example Projects. While Cypress is an opensource tool, at Itential we have internal libraries that have been built around Cypress to allow us to test with a deployed IAP.
When certifying our Example Projects for a release of IAP we run these tests against the particular version of IAP and create a release branch in GitLab. If you do not see the Example Project available in your version of IAP please contact Itential.
While Itential tests this Example Project and its capabilities, it is often the case the customer environments offer their own unique circumstances. Therefore, it is our recommendation that you deploy this Example Project into a development/testing environment in which you can test the Example Project.
Using this Workflow Project
Workflow Projects contain 1 or more workflows. Each of these workflows have different inputs and outputs.
Send Email - SMTP
Send email with options
Capabilities include:
- The workflow is used to send email with options using SMTP
Entry Point IAP Component
The primary IAP component to run Send Email - SMTP is listed below:
IAP Component Name | IAP Component Type | Send Email - SMTP | Workflow |
---|
Inputs
The following table lists the inputs for Send Email - SMTP:
Name | Type | Required | Description | Example Value |
---|---|---|---|---|
to | string | yes | List of email addresses (recipients) seperated by semiclons | abc@gmail.com;xyz@gmail.com |
from | string | yes | Email address of the sender | myemail@itential.com |
subject | string | no | Subject of email | Quick follow-up |
body | string | no | Body of email | Hi there |
adapterId | string | yes | Email adapter instance to use for the workflow | EmailOpensource |
Outputs
The following table lists the outputs for Send Email - SMTP:
Name | Type | Description | Example Value |
---|---|---|---|
emailResult | object | The result of the email sending process | {
"status": "success",
"responseData": {
"accepted": [
"abc@gmail.com",
"xyz@gmail.com"
],
"rejected": []
}
} |
Query Output
The following items show how to query successful results from the output of Send Email - SMTP:
Email Status
emailResult.status
Success Response Message
emailResult.responseData
The following items show how to query failure results from the output of Send Email - SMTP:
Email Status
emailResult.status
Error Response Message
emailResult.responseData
Example Inputs and Outputs
Example 1
Input:
{ "to": "abc@gmail.com;xyz@gmail.com", "from": "myemail@itential.com", "subject": "", "body": "", "adapterId": "EmailOpensource" }
Output:
{ "emailResult": { "status": "success", "responseData": { "accepted": [ "abc@gmail.com", "xyz@gmail.com" ], "rejected": [] } } }
Example 2
Input:
{ "to": "abc", "from": "xyz@itential.com", "subject": "Hi", "body": "Hi there", "adapterId": "EmailOpensource" }
Output:
{ "emailResult": { "status": "error", "responseData": "Error: No recipients defined" } }
API Links
API Name | API Documentation Link | API Link Visibility |
---|---|---|
Nodemailer API Reference | https://www.npmjs.com/package/nodemailer | Public |
Additional Information
Support
Please use your Itential Customer Success account if you need support when using this Workflow Project.