-
Prefer plain text. Use --body-file for multi-paragraph messages (or --body-file - for stdin).
-
Same --body-file pattern works for drafts and replies.
-
--body does not unescape \n. If you need inline newlines, use a heredoc or $'Line 1\n\nLine 2'.
-
Use --body-html only when you need rich formatting.
-
HTML tags: <p> for paragraphs, <br> for line breaks, <strong> for bold, <em> for italic, <a href="url"> for links, <ul>/<li> for lists.
-
Example (plain text via stdin):
gog gmail send --to recipient@example.com \
--subject "Meeting Follow-up" \
--body-file - <<'EOF'
Hi Name,
Thanks for meeting today. Next steps:
- Item one
- Item two
Best regards,
Your Name
EOF
-
Example (HTML list):
gog gmail send --to recipient@example.com \
--subject "Meeting Follow-up" \
--body-html "<p>Hi Name,</p><p>Thanks for meeting today. Here are the next steps:</p><ul><li>Item one</li><li>Item two</li></ul><p>Best regards,<br>Your Name</p>"