Send Simple Email using SendGrid Email API in webMethods.io Integration Workflow

Summary:

This article describes the step-by-step process of creating the Integration Workflow for sending email using the SendGrid Connector in webMethods.io Integration

Pre-requisites:

  • The user needs to have a working SendGrid account to access the SendGrid Email API
  • Working webMethods.io Integration cloud tenant

Contents:

Section 1: Create API Key in SendGrid settings required for authentication to access the SendGrid Email API
Section 2: Creating the integration workflow for sending simple email using the Content Type and value in webMethods.io Integration

Steps:

Section 1. Create API Key in SendGrid settings required for authentication to access the SendGrid Email API

  1. Login to the SendGrid using your SendGrid credentials

  2. Once you logged in, navigate to Settings > API Keys

  3. Click Create API Key, enter the API Key Name and select Full Access under API Key Permissions

  1. Click Create & View, copy the API Key value generated and click Done

Section 2. Creating the integration workflow for sending simple email using the Content Type and value in webMethods.io Integration

  1. Login to webMethods.io Integration tenant

  2. Create new project or choose an existing project if required

  3. From Workflows tab, click + to create a new workflow

  1. Edit Workflow Name, enter the name and click Done

  1. From the Connectors palette, select the SendGrid connector and drag it onto the panel

image

  1. Click Settings to edit, select Action sendSimpleMail and click + to add account for SendGrid connection

  1. Enter API Key and click Add to add the account

  1. Select the account added and click Next to configure the Action by entering the required input parameters

  2. Enter the values for the required input parameters as shown below,

    to(list): Enter the list of user email addresses and names to receive the email
    from: Enter the from email address and name
    subject: Enter the email subject
    content(list): Enter the list of content type and values

Note: Email Sender needs to be verified for sending an email using it as from email address, to achieve this navigate to Settings > Sender Authentication and verify the Sender

  1. Click Next and click Test to test the action and verify

  1. If Test is successful, click Done and Save the workflow

  2. Click Run to execute the workflow and verify if the email is sent