Send Email with Attachment

Send email with an attachment from a Gmail account.

Options

Field Definition Type Required
Body is HTML? Indicate whether the body of the email is HTML or plain text. If you are using the Compose function to create the body of your email, select No. Dropdown TRUE

Input

Field Definition Type Required
Email
To Email address(es) of the message recipient(s); format multiple addresses in a list of individual emails or as a single text. List of Strings TRUE
From Display name and email address or email address only of the sender.

For example, use one of the following formats:

  • Joe Jackson <joe.jackson@web.com>

  • joe.jackson@web.com

String FALSE
CC Email address(es) of recipient(s) of a carbon copy of the email. List of Strings FALSE
BCC Email address(es) of recipient(s) of a blind carbon copy of the email. List of Strings FALSE
Subject Subject of the message. String FALSE
Body Content of the message (plain text or HTML depending on the Options setting). String FALSE
File
File Name Name of the file to attach. String TRUE
File Content File to attach. File TRUE
Caution

Attachments must be 10 MB in size or less.

Output

Field Definition Type
Email    
Message ID Unique ID of the email generated by Gmail. String

Additional information

  • The From field indicates who is sending emails (send as). You can send emails on behalf of yourself or someone. If you own another email address, you can send mail as that address.

  • You can add an attachment by mapping a File Type output from an action that generates or returns a file.

Related topics

Gmail connector

About the elements of Okta Workflows

Gmail API documentation