运行时依赖
安装命令
点击复制技能文档
gog-html-emAIl
Enhanced HTML emAIl 格式化ting for gog 命令行工具 with ready-to-use templates.
How to 发送 HTML EmAIls
ALWAYS use this exact 工作流:
Read the 应用ropriate template file from workspace/技能s/gog-html-emAIl/templates/ Replace placeholders using sed commands 发送 via gog gmAIl 发送 --body-html
Example:
TEMPLATE=$(cat workspace/技能s/gog-html-emAIl/templates/basic.html) HTML=$(echo "$TEMPLATE" | sed 's/\[NAME\]/John/g' | sed 's/\[MESSAGE\]/Your message here/g' | sed 's/\[签名ATURE\]/Your Name/g') gog gmAIl 发送 --to recipient@example.com --subject "Subject" --body-html "$HTML"
For multi-paragraph messages:
TEMPLATE=$(cat workspace/技能s/gog-html-emAIl/templates/basic.html) # Replace [MESSAGE] with multiple
tags for proper spacing MESSAGE='
First paragraph.
Second paragraph.
Third paragraph.
' HTML=$(echo "$TEMPLATE" | sed "s|\[MESSAGE\]|$MESSAGE|g" | sed 's/\[NAME\]/John/g' | sed 's/\[签名ATURE\]/Your Name/g') gog gmAIl 发送 --to recipient@example.com --subject "Subject" --body-html "$HTML"DO NOT:
Manually construct HTML strings Use heredocs or multi-line strings Include literal \n characters in HTML Put multiple paragraphs in a single
tag Template Selection 图形界面de
Choose the right template based on the emAIl purpose:
Business/Professional:
basic.html - Simple professional emAIls meeting.html - Meeting invitations (requires: NAME, TOPIC, DATE, TIME, DURATION, LOCATION, 签名ATURE) follow-up.html - Follow-up emAIls 状态-更新.html - Project 更新s invoice.html - Invoices and payments button.html - EmAIls with call-to-action buttons newsletter.html - Newsletters
Islamic/Religious:
jummah.html - Friday greetings (Jummah Mubarak) eid.html - Eid celebrations (Eid Mubarak) ramadan.html - Ramadan greetings (Ramadan Mubarak)
Celebrations:
birthday.html - Birthday wishes anniversary.html - Anniversary wishes congratulations.html - Congratulations messages new-year.html - New Year wishes (requires: NAME, MESSAGE, YEAR, 签名ATURE)
Other:
welcome.html - Welcome new users thank-you.html - Thank you messages highlight.html - 导入ant announcements multi-paragraph.html - Long-form content HTML Template Files
All templates are avAIlable in the templates/ directory. Each template uses placeholder variables in [BRACKETS] that you can replace with actual content.
AvAIlable Templates
basic.html - Simple professional emAIl
Placeholders: [NAME], [MESSAGE], [签名ATURE]
highlight.html - EmAIl with highlighted box
Placeholders: [NAME], [HIGHLIGHT_MESSAGE], [MESSAGE], [签名ATURE]
button.html - EmAIl with call-to-action button
Placeholders: [NAME], [MESSAGE], [BUTTON_URL], [BUTTON_TEXT], [签名ATURE]
multi-paragraph.html - Multiple paragraph emAIl
Placeholders: [NAME], [PARAGRAPH_1], [PARAGRAPH_2], [PARAGRAPH_3], [签名ATURE]
meeting.html - Meeting invitation
Placeholders: [NAME], [TOPIC], [DATE], [TIME], [DURATION], [LOCATION], [签名ATURE]
follow-up.html - Follow-up emAIl
Placeholders: [NAME], [TOPIC], [MESSAGE], [签名ATURE]
newsletter.html - Newsletter 格式化
Placeholders: [NEWSLETTER_TITLE], [DATE], [SECTION_1_TITLE], [SECTION_1_CONTENT], [SECTION_2_TITLE], [SECTION_2_CONTENT]
invoice.html - Invoice notification
Placeholders: [NAME], [INVOICE_NUMBER], [DATE], [AMOUNT], [DUE_DATE], [DESCRIPTION], [PAYMENT_URL], [签名ATURE]
welcome.html - Welcome emAIl with CTA
Placeholders: [NAME], [MESSAGE], [获取_启动ED_URL], [签名ATURE]
状态-更新.html - Project 状态 更新
Placeholders: [NAME], [PROJECT_NAME], [COMPLETED_ITEMS], [IN_进度_ITEMS], [BLOCKED_ITEMS], [NEXT_STEPS], [签名ATURE] Special Occasion Templates
jummah.html - Jummah Mubarak greeting
Placeholders: [NAME], [MESSAGE], [签名ATURE] Features: Islamic greeting with blue gradient background
eid.html - Eid Mubarak greeting
Placeholders: [NAME], [MESSAGE], [签名ATURE] Features: Green gradient background with Islamic blessings
ramadan.html - Ramadan Mubarak greeting
Placeholders: [NAME], [MESSAGE], [签名ATURE] Features: Purple gradient background with Ramadan wishes
birthday.html - Birthday wishes
Placeholders: [NAME], [MESSAGE], [签名ATURE] Features: Pink gradient background with celebration emojis
anniversary.html - Anniversary wishes
Placeholders: [NAME], [MESSAGE], [签名ATURE] Features: Pink-yellow gradient with romantic theme
congratulations.html - Congratulations message
Placeholders: [NAME], [MESSAGE], [签名ATURE] Features: Gold-blue gradient with 成功 theme
thank-you.html - Thank you message
Placeholders: [NAME], [MESSAGE], [签名ATURE] Features: Soft pastel gradient with gratitude theme
new-year.html - New Year wishes
Placeholders: [NAME], [MESSAGE], [YEAR], [签名ATURE] Features: Purple gradient with celebration theme Using Templates Directly # Read template, replace placeholders, and 发送 TEMPLATE=$(cat workspace/技能s/gog-html-emAIl/templates/basic.html) HTML=$(echo "$TEMPLATE" | sed 's/\[