- Print
- DarkLight
- PDF
This is an email send adaptor for SendGrid, which enables sending personalized emails from prebuilt templates. A template of an email can be created with variables that can be personalized per person so each email can address a person by name or have specific content that is relevant to them.
This is a parameterized graph template in which SendGrid has different pricing models depending on the amount of emails sent and contacts stored. There is a free trial account that allows for 100 emails to be sent per day, which never expires.
Package contents
Graphs
- SendGrid Email Send
Schema
{
"sendgrid": {
"inputs": {
"subject": "",
"toEmail": "",
"fromEmail": "",
"templateId": "",
"substitutions": ""
},
"results": "",
"emailBody": ""
}
}
Setup
- Create a SendGrid account
- Create an API key for your project
- Save the key in a password manager because SendGrid will not show it to you again later on
- Configure the SendGrid Email connection with the following details:
- Follow the instructions for the setup of the Application Parameters Graph Template
- Insert the the API key into the appParams table using the following SQL:
INSERT INTO appParams(paramKey, paramValue, paramType, description) VALUES
('sendGridApiKey', 'API KEY GOES HERE', 'string', 'This is the API key for SendGrid');
- Drop the graph into a project and populate the parameters required by the graph
- parameters are string values except for substitutions
- substitutions need to be a JSON array of the variables, and the replacement values
{
"%body%": "Hello World!",
"%name%": "John Doe"
}