Skip to main content
gmail.forwardMessage sends a message to new recipients, builds a forwarded-message block from its headers, and preserves attachments by default.

Example

automations/forward-invoices.automation.ts

Inputs

Recipient is an email string or { address: string; name?: string }. Attachment is a File or an object containing file with optional filename, contentId, and disposition: "attachment" | "inline". Inputs accept compatible signals.
Preserving original attachments requires the automation to download and upload those files. Set includeAttachments: false when you only need the message content, especially for large messages.
The action fails if Gmail doesn’t return the source message’s raw content. The forwarded message carries an authenticated automation origin. Gmail triggers don’t wake the automation that sent it, while other automations watching the mailbox still receive the event.

Output

Returns Signal<MessageMetadata>: