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
-
Login to the SendGrid using your SendGrid credentials
-
Once you logged in, navigate to Settings > API Keys
-
Click Create API Key, enter the API Key Name and select Full Access under API Key Permissions
- 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
-
Login to webMethods.io Integration tenant
-
Create new project or choose an existing project if required
-
From Workflows tab, click + to create a new workflow
- Edit Workflow Name, enter the name and click Done
- From the Connectors palette, select the SendGrid connector and drag it onto the panel
- Click Settings to edit, select Action sendSimpleMail and click + to add account for SendGrid connection
- Enter API Key and click Add to add the account
-
Select the account added and click Next to configure the Action by entering the required input parameters
-
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
- Click Next and click Test to test the action and verify
-
If Test is successful, click Done and Save the workflow
-
Click Run to execute the workflow and verify if the email is sent