$npx -y skills add googleworkspace/cli --skill gws-gmail-forwardGmail: Forward a message to new recipients.
| 1 | # gmail +forward |
| 2 | |
| 3 | > **PREREQUISITE:** Read `../gws-shared/SKILL.md` for auth, global flags, and security rules. If missing, run `gws generate-skills` to create it. |
| 4 | |
| 5 | Forward a message to new recipients |
| 6 | |
| 7 | ## Usage |
| 8 | |
| 9 | ```bash |
| 10 | gws gmail +forward --message-id <ID> --to <EMAILS> |
| 11 | ``` |
| 12 | |
| 13 | ## Flags |
| 14 | |
| 15 | | Flag | Required | Default | Description | |
| 16 | |------|----------|---------|-------------| |
| 17 | | `--message-id` | ✓ | — | Gmail message ID to forward | |
| 18 | | `--to` | ✓ | — | Recipient email address(es), comma-separated | |
| 19 | | `--from` | — | — | Sender address (for send-as/alias; omit to use account default) | |
| 20 | | `--body` | — | — | Optional note to include above the forwarded message (plain text, or HTML with --html) | |
| 21 | | `--no-original-attachments` | — | — | Do not include file attachments from the original message (inline images in --html mode are preserved) | |
| 22 | | `--attach` | — | — | Attach a file (can be specified multiple times) | |
| 23 | | `--cc` | — | — | CC email address(es), comma-separated | |
| 24 | | `--bcc` | — | — | BCC email address(es), comma-separated | |
| 25 | | `--html` | — | — | Treat --body as HTML content (default is plain text) | |
| 26 | | `--dry-run` | — | — | Show the request that would be sent without executing it | |
| 27 | | `--draft` | — | — | Save as draft instead of sending | |
| 28 | |
| 29 | ## Examples |
| 30 | |
| 31 | ```bash |
| 32 | gws gmail +forward --message-id 18f1a2b3c4d --to dave@example.com |
| 33 | gws gmail +forward --message-id 18f1a2b3c4d --to dave@example.com --body 'FYI see below' |
| 34 | gws gmail +forward --message-id 18f1a2b3c4d --to dave@example.com --cc eve@example.com |
| 35 | gws gmail +forward --message-id 18f1a2b3c4d --to dave@example.com --body '<p>FYI</p>' --html |
| 36 | gws gmail +forward --message-id 18f1a2b3c4d --to dave@example.com -a notes.pdf |
| 37 | gws gmail +forward --message-id 18f1a2b3c4d --to dave@example.com --no-original-attachments |
| 38 | gws gmail +forward --message-id 18f1a2b3c4d --to dave@example.com --draft |
| 39 | ``` |
| 40 | |
| 41 | ## Tips |
| 42 | |
| 43 | - Includes the original message with sender, date, subject, and recipients. |
| 44 | - Original attachments are included by default (matching Gmail web behavior). |
| 45 | - With --html, inline images are also preserved via cid: references. |
| 46 | - In plain-text mode, inline images are not included (matching Gmail web). |
| 47 | - Use --no-original-attachments to forward without the original message's files. |
| 48 | - Use -a/--attach to add extra file attachments. Can be specified multiple times. |
| 49 | - Combined size of original and user attachments is limited to 25MB. |
| 50 | - With --html, the forwarded block uses Gmail's gmail_quote CSS classes and preserves HTML formatting. Use fragment tags (<p>, <b>, <a>, etc.) — no <html>/<body> wrapper needed. |
| 51 | - Use --draft to save the forward as a draft instead of sending it immediately. |
| 52 | |
| 53 | ## See Also |
| 54 | |
| 55 | - [gws-shared](../gws-shared/SKILL.md) — Global flags and auth |
| 56 | - [gws-gmail](../gws-gmail/SKILL.md) — All send, read, and manage email commands |