Sendgrid
Last updated
Last updated
The Sendgrid service allows you to send automated emails from your app using the Twilio Sendgrid API.
NOTE: All profile settings are encrypted and stored in Zingy's cloud infrastructure.
Enter your Sendgrid API Key here.
NOTE: All connection settings are encrypted and stored in Zingy's cloud infrastructure.
Enter the from address to use when sending the email using this connection.
The Execute Connection Command block is available in both Page Flow and Cloud Flow. Using this block you can add logic to trigger the operations/commands supported by the Sendgrid service.
For security purposes, all operations/commands offered by the Sendgrid service are only available in Cloud Flow and cannot be used in Page Flow.
Use this command to send a plain-text email using the Sendgrid service.
When invoking this operation, an object with the following properties is required:
The Send Email (Plain Text) command does not provide any output beyond the Success/Fail status.
Use this command to send an email in HTML format using the Sendgrid service.
When invoking this operation, an object with the following properties is required:
The Send Email (HTML) command does not provide any output beyond the Success/Fail status.
Use this command to send an email using a pre-defined template in your Sendgrid account.
When invoking this operation, an object with the following properties is required:
The Send Email (Template) command does not provide any output beyond the Success/Fail status.
In your app's Cloud Flow Web Hooks and Background Tasks, the Custom Code block can be used to access and implement advanced functionality related to the Sendgrid email service.
To access the client initialized with credentials saved on this Sendgrid service connection, see the following example:
You may also initialize a separate Sendgrid client, by specifying account credentials directly:
After the sgMail
object is initialized, you can use it to call into the Sendgrid library.
If you need to utilize Sendgrid API beyond simply sending emails, please see @sendgrid/client .
Property | Type | Description |
---|---|---|
Property | Type | Description |
---|---|---|
Property | Type | Description |
---|---|---|
toAddr
One or more recipient email addresses. For multiple addresses use a list.
ccAddr
Optional. One or more CC email addresses. For multiple addresses use a list.
bccAddr
Optional. One or more BCC email addresses. For multiple addresses use a list.
subject
The subject for the email.
msg
The email's message or body.
customProps
Optional. For advanced users, this specifies an object with properties based on parameters used by the Sendgrid API.
toAddr
One or more recipient email addresses. For multiple addresses use a list.
ccAddr
Optional. One or more CC email addresses. For multiple addresses use a list.
bccAddr
Optional. One or more BCC email addresses. For multiple addresses use a list.
subject
The subject for the email.
msg
The email's message or body in HTML format.
msgText
The email's message or body in text format. Used for cases where the recipient's email client is unable to show the HTML formatted message.
customProps
Optional. For advanced users, this specifies an object with properties based on parameters used by the Sendgrid API.
toAddr
One or more recipient email addresses. For multiple addresses use a list.
ccAddr
Optional. One or more CC email addresses. For multiple addresses use a list.
bccAddr
Optional. One or more BCC email addresses. For multiple addresses use a list.
subject
The subject for the email.
templateId
The identifier of the Sendgrid template.
substitutions
Object containing dynamic dynamic substitutions.
substitutionWrappers
Optional. Defaults to {{ and }}. A list containing the starting and ending wrappers for identifying substitution properties.
customProps
Optional. For advanced users, this specifies an object with properties based on parameters used by the Sendgrid API.