Install
openclaw skills install gog-html-emailSend beautifully formatted HTML emails via gog CLI with templates and styling
openclaw skills install gog-html-emailEnhanced HTML email formatting for gog CLI with ready-to-use templates.
ALWAYS use this exact workflow:
workspace/skills/gog-html-email/templates/sed commandsgog gmail send --body-htmlExample:
TEMPLATE=$(cat workspace/skills/gog-html-email/templates/basic.html)
HTML=$(echo "$TEMPLATE" | sed 's/\[NAME\]/John/g' | sed 's/\[MESSAGE\]/Your message here/g' | sed 's/\[SIGNATURE\]/Your Name/g')
gog gmail send --to recipient@example.com --subject "Subject" --body-html "$HTML"
For multi-paragraph messages:
TEMPLATE=$(cat workspace/skills/gog-html-email/templates/basic.html)
# Replace [MESSAGE] with multiple <p> tags for proper spacing
MESSAGE='<p style="margin: 0 0 16px 0;">First paragraph.</p><p style="margin: 0 0 16px 0;">Second paragraph.</p><p style="margin: 0 0 16px 0;">Third paragraph.</p>'
HTML=$(echo "$TEMPLATE" | sed "s|\[MESSAGE\]|$MESSAGE|g" | sed 's/\[NAME\]/John/g' | sed 's/\[SIGNATURE\]/Your Name/g')
gog gmail send --to recipient@example.com --subject "Subject" --body-html "$HTML"
DO NOT:
\n characters in HTML<p> tagChoose the right template based on the email purpose:
Business/Professional:
basic.html - Simple professional emailsmeeting.html - Meeting invitations (requires: NAME, TOPIC, DATE, TIME, DURATION, LOCATION, SIGNATURE)follow-up.html - Follow-up emailsstatus-update.html - Project updatesinvoice.html - Invoices and paymentsbutton.html - Emails with call-to-action buttonsnewsletter.html - NewslettersIslamic/Religious:
jummah.html - Friday greetings (Jummah Mubarak)eid.html - Eid celebrations (Eid Mubarak)ramadan.html - Ramadan greetings (Ramadan Mubarak)Celebrations:
birthday.html - Birthday wishesanniversary.html - Anniversary wishescongratulations.html - Congratulations messagesnew-year.html - New Year wishes (requires: NAME, MESSAGE, YEAR, SIGNATURE)Other:
welcome.html - Welcome new usersthank-you.html - Thank you messageshighlight.html - Important announcementsmulti-paragraph.html - Long-form contentAll templates are available in the templates/ directory. Each template uses placeholder variables in [BRACKETS] that you can replace with actual content.
basic.html - Simple professional email
[NAME], [MESSAGE], [SIGNATURE]highlight.html - Email with highlighted box
[NAME], [HIGHLIGHT_MESSAGE], [MESSAGE], [SIGNATURE]button.html - Email with call-to-action button
[NAME], [MESSAGE], [BUTTON_URL], [BUTTON_TEXT], [SIGNATURE]multi-paragraph.html - Multiple paragraph email
[NAME], [PARAGRAPH_1], [PARAGRAPH_2], [PARAGRAPH_3], [SIGNATURE]meeting.html - Meeting invitation
[NAME], [TOPIC], [DATE], [TIME], [DURATION], [LOCATION], [SIGNATURE]follow-up.html - Follow-up email
[NAME], [TOPIC], [MESSAGE], [SIGNATURE]newsletter.html - Newsletter format
[NEWSLETTER_TITLE], [DATE], [SECTION_1_TITLE], [SECTION_1_CONTENT], [SECTION_2_TITLE], [SECTION_2_CONTENT]invoice.html - Invoice notification
[NAME], [INVOICE_NUMBER], [DATE], [AMOUNT], [DUE_DATE], [DESCRIPTION], [PAYMENT_URL], [SIGNATURE]welcome.html - Welcome email with CTA
[NAME], [MESSAGE], [GET_STARTED_URL], [SIGNATURE]status-update.html - Project status update
[NAME], [PROJECT_NAME], [COMPLETED_ITEMS], [IN_PROGRESS_ITEMS], [BLOCKED_ITEMS], [NEXT_STEPS], [SIGNATURE]jummah.html - Jummah Mubarak greeting
[NAME], [MESSAGE], [SIGNATURE]eid.html - Eid Mubarak greeting
[NAME], [MESSAGE], [SIGNATURE]ramadan.html - Ramadan Mubarak greeting
[NAME], [MESSAGE], [SIGNATURE]birthday.html - Birthday wishes
[NAME], [MESSAGE], [SIGNATURE]anniversary.html - Anniversary wishes
[NAME], [MESSAGE], [SIGNATURE]congratulations.html - Congratulations message
[NAME], [MESSAGE], [SIGNATURE]thank-you.html - Thank you message
[NAME], [MESSAGE], [SIGNATURE]new-year.html - New Year wishes
[NAME], [MESSAGE], [YEAR], [SIGNATURE]# Read template, replace placeholders, and send
TEMPLATE=$(cat workspace/skills/gog-html-email/templates/basic.html)
HTML=$(echo "$TEMPLATE" | sed 's/\[NAME\]/John/g' | sed 's/\[MESSAGE\]/Your message here/g' | sed 's/\[SIGNATURE\]/Your Name/g')
gog gmail send --to recipient@example.com --subject "Subject" --body-html "$HTML"
Basic email:
TEMPLATE=$(cat workspace/skills/gog-html-email/templates/basic.html)
HTML=$(echo "$TEMPLATE" | sed 's/\[NAME\]/John/g' | sed 's/\[MESSAGE\]/Just wanted to check in on the project status./g' | sed 's/\[SIGNATURE\]/Sarah/g')
gog gmail send --to john@example.com --subject "Project Check-in" --body-html "$HTML"
Meeting invitation:
TEMPLATE=$(cat workspace/skills/gog-html-email/templates/meeting.html)
HTML=$(echo "$TEMPLATE" | sed 's/\[NAME\]/Team/g' | sed 's/\[TOPIC\]/Q1 Planning/g' | sed 's/\[DATE\]/March 15, 2026/g' | sed 's/\[TIME\]/2:00 PM/g' | sed 's/\[DURATION\]/1 hour/g' | sed 's/\[LOCATION\]/Conference Room A/g' | sed 's/\[SIGNATURE\]/Alex/g')
gog gmail send --to team@example.com --subject "Q1 Planning Meeting" --body-html "$HTML"
Email with button:
TEMPLATE=$(cat workspace/skills/gog-html-email/templates/button.html)
HTML=$(echo "$TEMPLATE" | sed 's/\[NAME\]/Sarah/g' | sed 's/\[MESSAGE\]/Please review the latest document./g' | sed 's|\[BUTTON_URL\]|https://docs.example.com/report|g' | sed 's/\[BUTTON_TEXT\]/View Document/g' | sed 's/\[SIGNATURE\]/Mike/g')
gog gmail send --to sarah@example.com --subject "Document Review" --body-html "$HTML"
Jummah Mubarak:
TEMPLATE=$(cat workspace/skills/gog-html-email/templates/jummah.html)
HTML=$(echo "$TEMPLATE" | sed 's/\[NAME\]/Ahmed/g' | sed 's/\[MESSAGE\]/Wishing you a blessed Friday filled with peace and blessings./g' | sed 's/\[SIGNATURE\]/Your Name/g')
gog gmail send --to ahmed@example.com --subject "Jummah Mubarak" --body-html "$HTML"
Eid Mubarak:
TEMPLATE=$(cat workspace/skills/gog-html-email/templates/eid.html)
HTML=$(echo "$TEMPLATE" | sed 's/\[NAME\]/Family/g' | sed 's/\[MESSAGE\]/May this Eid bring joy, happiness, and prosperity to you and your loved ones./g' | sed 's/\[SIGNATURE\]/Your Name/g')
gog gmail send --to family@example.com --subject "Eid Mubarak" --body-html "$HTML"
Birthday wishes:
TEMPLATE=$(cat workspace/skills/gog-html-email/templates/birthday.html)
HTML=$(echo "$TEMPLATE" | sed 's/\[NAME\]/Sarah/g' | sed 's/\[MESSAGE\]/Hope your special day is filled with joy, laughter, and wonderful memories!/g' | sed 's/\[SIGNATURE\]/Your Name/g')
gog gmail send --to sarah@example.com --subject "Happy Birthday!" --body-html "$HTML"
-apple-system, BlinkMacSystemFont, Segoe UI, Roboto for best rendering[PLACEHOLDER] values with actual contentYou can customize template colors, fonts, and styling by adding additional sed commands to replace CSS values.
Change gradient colors:
TEMPLATE=$(cat workspace/skills/gog-html-email/templates/birthday.html)
# Replace pink gradient with blue gradient
HTML=$(echo "$TEMPLATE" | sed 's/#f093fb/#4facfe/g' | sed 's/#f5576c/#00f2fe/g')
# Then replace placeholders and send
HTML=$(echo "$HTML" | sed 's/\[NAME\]/John/g' | sed 's/\[MESSAGE\]/Your message/g' | sed 's/\[SIGNATURE\]/Your Name/g')
gog gmail send --to recipient@example.com --subject "Subject" --body-html "$HTML"
Change primary color:
TEMPLATE=$(cat workspace/skills/gog-html-email/templates/basic.html)
# Change all blue (#007bff) to purple (#667eea)
HTML=$(echo "$TEMPLATE" | sed 's/#007bff/#667eea/g')
HTML=$(echo "$HTML" | sed 's/\[NAME\]/John/g' | sed 's/\[MESSAGE\]/Your message/g' | sed 's/\[SIGNATURE\]/Your Name/g')
gog gmail send --to recipient@example.com --subject "Subject" --body-html "$HTML"
Change background color:
TEMPLATE=$(cat workspace/skills/gog-html-email/templates/highlight.html)
# Change highlight box from light gray to light blue
HTML=$(echo "$TEMPLATE" | sed 's/#f8f9fa/#e3f2fd/g')
HTML=$(echo "$HTML" | sed 's/\[NAME\]/John/g' | sed 's/\[MESSAGE\]/Your message/g' | sed 's/\[SIGNATURE\]/Your Name/g')
gog gmail send --to recipient@example.com --subject "Subject" --body-html "$HTML"
Change font size:
TEMPLATE=$(cat workspace/skills/gog-html-email/templates/basic.html)
# Make heading larger (36px to 48px)
HTML=$(echo "$TEMPLATE" | sed 's/font-size: 36px/font-size: 48px/g')
HTML=$(echo "$HTML" | sed 's/\[NAME\]/John/g' | sed 's/\[MESSAGE\]/Your message/g' | sed 's/\[SIGNATURE\]/Your Name/g')
gog gmail send --to recipient@example.com --subject "Subject" --body-html "$HTML"
Change layout alignment (left-align instead of center):
TEMPLATE=$(cat workspace/skills/gog-html-email/templates/basic.html)
# Remove centering: change "margin: 0 auto" to "margin: 0"
HTML=$(echo "$TEMPLATE" | sed 's/margin: 0 auto/margin: 0/g')
HTML=$(echo "$HTML" | sed 's/\[NAME\]/John/g' | sed 's/\[MESSAGE\]/Your message/g' | sed 's/\[SIGNATURE\]/Your Name/g')
gog gmail send --to recipient@example.com --subject "Subject" --body-html "$HTML"
Current template colors:
Birthday (Pink):
#f093fb → #f5576c#f5576cEid (Green):
#11998e → #38ef7d#11998eJummah (Blue):
#4facfe → #00f2fe#4facfeRamadan (Purple):
#667eea → #764ba2#667eeaAnniversary (Pink-Yellow):
#fa709a → #fee140#fa709aCongratulations (Gold-Blue):
#ffd89b → #19547b#19547bThank You (Pastel):
#a8edea → #fed6e3New Year (Purple):
#667eea → #764ba2#667eeaSuggested alternative palettes:
#2E3192 → #1BFFFF#FF512F → #F09819#134E5E → #71B280#8E2DE2 → #4A00E0#FF6B6B → #FFE66D#4ECDC4 → #556270Multiple color changes:
TEMPLATE=$(cat workspace/skills/gog-html-email/templates/birthday.html)
# Change to ocean theme
HTML=$(echo "$TEMPLATE" | \
sed 's/#f093fb/#2E3192/g' | \
sed 's/#f5576c/#1BFFFF/g' | \
sed 's/\[NAME\]/John/g' | \
sed 's/\[MESSAGE\]/Your message/g' | \
sed 's/\[SIGNATURE\]/Your Name/g')
gog gmail send --to recipient@example.com --subject "Subject" --body-html "$HTML"
Create custom template variant:
# Save customized version as new template
TEMPLATE=$(cat workspace/skills/gog-html-email/templates/birthday.html)
echo "$TEMPLATE" | sed 's/#f093fb/#2E3192/g' | sed 's/#f5576c/#1BFFFF/g' > workspace/skills/gog-html-email/templates/birthday-ocean.html
# Now use the custom template
TEMPLATE=$(cat workspace/skills/gog-html-email/templates/birthday-ocean.html)
HTML=$(echo "$TEMPLATE" | sed 's/\[NAME\]/John/g' | sed 's/\[MESSAGE\]/Your message/g' | sed 's/\[SIGNATURE\]/Your Name/g')
gog gmail send --to recipient@example.com --subject "Subject" --body-html "$HTML"
--body) for simple messages without formatting needs