Tool

Send email

The Gmail Send Email tool enables users to send emails directly from their Google Workspace account using a simple API integration. It supports customization of recipients, subject lines, email bodies, and attachments, making automated email communication seamless and efficient.

Google Mail

Features

  • Send emails to multiple recipients with To, CC, and BCC fields.
  • Customize the sender's display name and email address easily.
  • Support for both plaintext and HTML formatted email bodies.
  • Attach files by specifying filenames and URLs or local paths.
  • Include reply-to addresses and reference previous emails using message IDs.

Benefits

  • Streamlines automated email sending within Google Workspace.
  • Enhances professional communication with customizable sender information.
  • Increases engagement with rich HTML email content.
  • Facilitates efficient distribution of documents and attachments.
  • Simplifies managing email conversations by supporting reply reference headers.

Description

Send an email from your Google Workspace email account. See the documentation

IMPORTANT: The arguments have specific formats. Please follow the instructions below:

  • to: Return JSON in this format: string[]
  • cc: Return JSON in this format: string[]
  • bcc: Return JSON in this format: string[]
  • attachmentFilenames: Return JSON in this format: string[]
  • attachmentUrlsOrPaths: Return JSON in this format: string[]

Parameters

13 parameters

NameTypeDescription
torequiredstring[]

Enter a single recipient's email or multiple emails as items in an array.

ccstring[]

Enter a single recipient's email or multiple emails as items in an array.

bccstring[]

Enter a single recipient's email or multiple emails as items in an array.

fromNamestring

Specify the name that will be displayed in the "From" section of the email.

fromEmailstring

Specify the email address that will be displayed in the "From" section of the email.

replyTostring

Specify the email address that will appear on the "Reply-To" field, if different than the sender's email.

subjectrequiredstring

Specify a subject for the email.

bodyrequiredstring

Include an email body as either plain text or HTML. If HTML, make sure to set the "Body Type" prop to html.

bodyTypeenum

Choose to send as plain text or HTML. Defaults to plaintext.

attachmentFilenamesstring[]

Array of the names of the files to attach. Must contain the file extension (e.g. .jpeg, .txt). Use in conjuction with Attachment URLs or Paths.

attachmentUrlsOrPathsstring[]

Array of the URLs of the download links for the files, or the local paths (e.g. /tmp/my-file.txt). Use in conjuction with Attachment Filenames.

inReplyTostring

Specify the message-id this email is replying to.

mimeTypestring

Mime Type of attachments. Setting the mime-type will override using the filename extension to determine attachment's content type.

Ready to vibe automate?

Join thousands of people who have transformed their workflows.

Workflows

Automations with AI agents

Collections

All your data, searchable

Chat Widget

Drop-in widget for your website

Developer API

Build AI-powered apps with ease

    We use cookies to enhance your experience on Needle and keep your data secure. Privacy Policy