Default image

Vendor

Email

Product

SMTP

Category

Notifications

Project Type

Workflow Project


View Repository
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

NameOverview
Send Email - SMTPSend 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

NameOS VersionAPI Version
Email server, such as Microsoft Outlook

Adapters

NameVersionConfiguration Notes
adapter-email4.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 NameIAP Component Type
Send Email - SMTPWorkflow

Inputs

The following table lists the inputs for Send Email - SMTP:

NameTypeRequiredDescriptionExample Value
tostringyesList of email addresses (recipients) seperated by semiclons
abc@gmail.com;xyz@gmail.com
fromstringyesEmail address of the sender
myemail@itential.com
subjectstringnoSubject of email
Quick follow-up
bodystringnoBody of email
Hi there
adapterIdstringyesEmail adapter instance to use for the workflow
EmailOpensource

Outputs

The following table lists the outputs for Send Email - SMTP:

NameTypeDescriptionExample Value
emailResultobjectThe 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 NameAPI Documentation LinkAPI Link Visibility
Nodemailer API Referencehttps://www.npmjs.com/package/nodemailerPublic

Additional Information

Support

Please use your Itential Customer Success account if you need support when using this Workflow Project.