Skip to main content
forward sends an existing Gmail message to new recipients. It builds a standard forwarded-message block from the original headers and preserves the original 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". Every input, including account, also accepts a compatible Signal.
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 does not return the source message’s raw content.

Output

Returns a Signal<MessageMetadata> with: