ByteChef LogoByteChef
Components

Sendgrid

Trusted for reliable email delivery at scale.

Categories: Communication, Marketing Automation

Type: sendgrid/v1


Connections

Version: 1

Bearer Token

Properties

NameLabelTypeDescriptionRequired
tokenTokenSTRINGtrue

Actions

Send Email

Name: sendEmail

Sends an email.

Properties

NameLabelTypeDescriptionRequired
fromFromSTRINGEmail address from which you want to send.true
toToARRAY
Items [STRING]
Email addresses which you want to send to.true
ccCCARRAY
Items [STRING]
Email address which receives a copy.false
subjectSubjectSTRINGSubject of your emailtrue
textMessage BodySTRINGThis is the message you want to sendtrue
typeMessage TypeSTRING
Options text/plain, text/html
Message type for your contenttrue
attachmentsAttachmentsARRAY
Items [FILE_ENTRY]
A list of attachments you want to include with the email.false

Example JSON Structure

{
  "label" : "Send Email",
  "name" : "sendEmail",
  "parameters" : {
    "from" : "",
    "to" : [ "" ],
    "cc" : [ "" ],
    "subject" : "",
    "text" : "",
    "type" : "",
    "attachments" : [ {
      "extension" : "",
      "mimeType" : "",
      "name" : "",
      "url" : ""
    } ]
  },
  "type" : "sendgrid/v1/sendEmail"
}

Output

This action does not produce any output.

What to do if your action is not listed here?

If this component doesn't have the action you need, you can use Custom Action to create your own. Custom Actions empower you to define HTTP requests tailored to your specific requirements, allowing for greater flexibility in integrating with external services or APIs.

To create a Custom Action, simply specify the desired HTTP method, path, and any necessary parameters. This way, you can extend the functionality of your component beyond the predefined actions, ensuring that you can meet all your integration needs effectively.