Zingy Docs
Visit our websiteTry a DemoPricingContact
  • Introduction
  • 🎛️Dashboard
    • Overview
    • Apps
    • Account Profile
    • Billing - View Invoices
    • Billing - Payment Methods
    • Billing - Subscription
  • 💻App Editor
    • App Components
    • App Editor Tour
    • App Settings
    • App Users
    • App User Groups
    • Publishing your App
    • Pages and Forms
      • Create a Page
      • Create a Structured Page
      • What is a Structured Page ?
      • Create a Form
      • Page Editor
      • Working with Forms
    • Page Editor
      • Page Editor Tour
      • Adding Page Content
      • Adding Content to Structured Pages
      • Working with Page Elements
      • Page Element Settings
      • Responsive Design
      • Padding and Margin
      • Editing Text
      • Using AI Wiz in the Page Editor
      • Built-in elements
        • Link
        • Image
        • Spacer
        • Flexible Area
        • Layout Container
        • Layout Row
        • Layout Column
        • 1 Column
        • 2 Columns
        • 3 Columns
        • Add Column
        • Table
        • Table Row
        • Table Column Cell
        • Table Heading Cell
        • Table (3 cols)
        • Table (4 cols)
        • Input
        • Checkbox
        • Toggle Switch
        • Dropdown
        • Multi-line
        • Label
        • Button
        • Button Group
        • Input Group
        • Button Toolbar
        • Menubar Holder
        • Menubar Collapsible
        • Menubar
        • Menubar Item
        • Menubar Item Link
        • Menubar Style1
        • Menubar Style2
        • Menu Item
        • Popup Menu
        • Popup Menu Item
        • Menubar Popup Menu
        • Popup Menu Style1
        • Popup Menu Style2
        • Popup Menu Separator
        • Card
        • Card Group
        • Card Style1
        • Card Style2
        • Card Style3
        • Alert
        • Badged Text
        • Collapsible Area
        • Data Table
        • Stripe Payment
        • Form
        • Menubar Login Info
        • Data Design
      • Working with Forms
      • Using Forms
      • Page Preview
    • Page Settings
    • Page Flow
      • Block Anatomy
      • Toolbox Blocks
        • Set Content
        • Get Content
        • Badged Text
        • Alert Text
        • Status Animation
        • Set Style
        • Set CSS
        • Set Input Value
        • Get Input Value
        • Set Toggle Switch State
        • Get Toggle Switch State
        • Set Input Feedback
        • Enable/Disable Element
        • Set Element Attribute
        • Get Element Attribute
        • Get Element by Name
        • Element
        • URL Parameter Value
        • Navigate Page
        • Timer
        • Timer Repeat
        • Show Popup Form
        • Show Information Popup
        • Show Confirmation Popup
        • Popup Form Data
        • Collapsible Area Action
        • Mouse/Keyboard Action
        • Event Action
        • Action/Event Info
        • Show Menu
        • Menu Text
        • Menu Index
        • Write Log Message
        • Log Category
        • Data Table Action Menu Customize
        • Data Table Attach Form
        • Data Table Add Action
        • Data Table Load Next Page
        • Data Table Load Prev Page
        • Data Table Refresh
        • Data Table Custom Query
        • Data Table : Table Name
        • Data Table : Data
        • Content from Data Design
        • Set Content in Data Design
        • Get Content in Data Design
        • Get Element Attribute in Data Design
        • Set Element Attribute in Data Design
        • Set Style in Data Design
        • Set CSS in Data Design
        • Set Input Value in Data Design
        • Get Input Value in Data Design
        • Get Toggle Switch State in Data Design
        • Set Toggle Switch State in Data Design
        • Set Input Feedback in Data Design
        • Enable/Disable Element in Data Design
        • Initialize Toggle Switch in Data Design
        • Event Action in Data Design
        • Collapsible Area Action in Data Design
        • Data Record Count
        • Data Record at Index
        • Data Record Loop
        • Data Record Info
        • Data Record Loop Index
        • Data Record ID
        • Data Table Name
        • Data Query Name
        • Data Read
        • Data Read Next
        • Data Read Previous
        • Data Lookup
        • Data Lookup with ID
        • Data Status
        • Data Add Record
        • Data Update Record with ID
        • Data Delete Record with ID
        • Data Input Popup
        • Lock/Unlock Form
        • Save Form with Data
        • Reset Form
        • Set Form Event Status
        • Set Form Event Status Message
        • Form Submit Complete
        • Set Field Input Value
        • Get Field Input Value
        • Form Data
        • Form in Edit Mode
        • Form Events
        • Execute Connection Command
        • Execute API Call
        • Connection Data
        • Connection Error
        • API Call Connection
        • Connection
        • Connection Command
        • Cloud Flow Invoke Hook
        • Cloud Flow : URL of Web Hook
        • HTTP Post
        • HTTP Get
        • HTTP Data
        • HTTP Error
        • Date
        • Custom Code
        • Date from Text
        • Get Object Property
      • Coding in Page Flow
      • Zingy API For Page Flow
      • References
        • Value Types
        • Popup Customization
        • Prerequisite for Dynamic Content block examples
        • Prerequisite for Data examples
    • Dynamic Content
    • Data
      • Database Tables
      • Database Queries
      • Data Tool
    • Cloud Flow
      • Cloud Flow Editor
      • Block Anatomy
      • Toolbox Blocks
        • Data Update Records
        • Data Delete Records
      • Coding in Cloud Flow
      • SDK/Library Integration
    • Media
    • Connections
      • Services
        • Stripe
        • Sendgrid
        • Twilio
        • API Call
        • API Key
Powered by GitBook
On this page
  • Profile Settings
  • API Key
  • Connection Settings
  • From Address
  • Operations/Commands
  • Send Email (Plain Text)
  • Send Email (HTML)
  • Send Email (Template)
  • Advanced Functionality
  1. App Editor
  2. Connections
  3. Services

Sendgrid

PreviousStripeNextTwilio

Last updated 1 year ago

The Sendgrid service allows you to send automated emails from your app using the .


Profile Settings

NOTE: All profile settings are encrypted and stored in Zingy's cloud infrastructure.

API Key


Connection Settings

NOTE: All connection settings are encrypted and stored in Zingy's cloud infrastructure.

From Address

Enter the from address to use when sending the email using this connection.


Operations/Commands

Send Email (Plain Text)

Use this command to send a plain-text email using the Sendgrid service.

Input Data

When invoking this operation, an object with the following properties is required:

Property
Type
Description

toAddr

ccAddr

bccAddr

subject

The subject for the email.

msg

The email's message or body.

customProps

Output

The Send Email (Plain Text) command does not provide any output beyond the Success/Fail status.

Send Email (HTML)

Use this command to send an email in HTML format using the Sendgrid service.

Input Data

When invoking this operation, an object with the following properties is required:

Property
Type
Description

toAddr

ccAddr

bccAddr

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

Output

The Send Email (HTML) command does not provide any output beyond the Success/Fail status.

Send Email (Template)

Use this command to send an email using a pre-defined template in your Sendgrid account.

Input Data

When invoking this operation, an object with the following properties is required:

Property
Type
Description

toAddr

ccAddr

bccAddr

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

Output

The Send Email (Template) command does not provide any output beyond the Success/Fail status.


Advanced Functionality

To access the client initialized with credentials saved on this Sendgrid service connection, see the following example:

// To use a sendgrid client initialized with credentials
// provided in a Sendgrid connection
const sgMail = zingyConn.sendgrid(connectionName);

You may also initialize a separate Sendgrid client, by specifying account credentials directly:

const sgMail = require('@sendgrid/mail');
sgMail.setApiKey(apiKey);

Enter your .

The block is available in both and . 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 and cannot be used in .

or

One or more recipient email addresses. For multiple addresses use a .

or

Optional. One or more CC email addresses. For multiple addresses use a .

or

Optional. One or more BCC email addresses. For multiple addresses use a .

Optional. For advanced users, this specifies an object with properties based on parameters used by the .

or

One or more recipient email addresses. For multiple addresses use a .

or

Optional. One or more CC email addresses. For multiple addresses use a .

or

Optional. One or more BCC email addresses. For multiple addresses use a .

Optional. For advanced users, this specifies an object with properties based on parameters used by the .

or

One or more recipient email addresses. For multiple addresses use a .

or

Optional. One or more CC email addresses. For multiple addresses use a .

or

Optional. One or more BCC email addresses. For multiple addresses use a .

Optional. For advanced users, this specifies an object with properties based on parameters used by the .

In your app's Cloud Flow Web Hooks and Background Tasks, the block can be used to access and implement advanced functionality related to the Sendgrid email service.

After the sgMail object is initialized, you can use it to call into the .

If you need to utilize Sendgrid API beyond simply sending emails, please see .

💻
Sendgrid API Key here
Execute Connection Command
Page Flow
Cloud Flow
Cloud Flow
Page Flow
Custom Code
Sendgrid library
text
list
list
text
list
list
text
list
list
text
text
object
Sendgrid API
text
list
list
text
list
list
text
list
list
text
text
text
object
Sendgrid API
text
list
list
text
list
list
text
list
list
text
text
object
list
object
Sendgrid API
Twilio Sendgrid API
@sendgrid/client