Send an Email With an Attachment from Okta Workflows

Updated August 28, 2025

In this guide:

  1. Okta Workflows Guides
  2. Send an email with an attachment
  3. Related Okta Workflows Guides
  4. Okta Workflows resources

Okta Workflows Guides

Okta Workflows guides offer questions and answers from Okta Workflows community office hours. They also come from the #okta-workflows channel on the Mac Admins Slack and other places. Read all the other guides.

How do you send an email with an attachment from Okta Workflows?

This guide will teach you how to send an email using the Gmail connector in Okta Workflows. It will also cover using the Office 365 Mail connector.

Send an email with an attachment

Gmail connector

This flow uses the Gmail-Send Email with Attachment card and sends the file from https://humanstxt.org/humans.txt.

Send an email with an attachment using Gmail.
Send an email with an attachment using Gmail.

The flow has these steps:

  1. The Text-Compose card sets up the file link.
  2. The File-Download card downloads the file from the specified link. In this example, the file is publicly available on the internet.
  3. The Gmail-Send Email with Attachment card sends the email with the file as an attachment.

This is how the email looks:

Email with an attachment.
Email with an attachment.

The following flow downloads an image from Google Drive.

Email a file from Google Drive flow.
Email a file from Google Drive flow.

The flow has these steps:

  1. The Google Drive-Download File card downloads the file. You can get the file ID from its share link.
  2. The File-Info card gets information about the file, including its name. The name is passed to the next card.
  3. The Gmail-Send Email with Attachment card sends the email with the file as an attachment.

This is how the email looks:

Email with image attachment.
Email with image attachment.

Office 365 Mail connector

With the Office 365 Mail-Send Email card, you can send multiple files. The flow below downloads two files and attaches them to an email. The Office 365 Mail-Send Email card expects a list of files. The flow uses the List-Construct card to create a file list.

Send an email with attachments using Office 365 Mail.
Send an email with attachments using Office 365 Mail.

Email with two attachments:

Email with two attachments.
Email with two attachments.

Okta Workflows resources

πŸš€ New to Okta Workflows? The Getting Started with Okta Workflows page has all the resources to help you get started.

πŸ“Ί Like learning from videos? Watch Okta Workflows videos.

❓Have a question? Ask during community office hours, post on the community forum, or email me.

πŸ™‹πŸ»β€β™€οΈ Want to learn from the community? Join the #okta-workflows channel on the Mac Admins Slack.

πŸ“– Want to learn more about Okta and automation? Take the Okta Workflows training on Okta Learning.

Leave a comment