email-design
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseEmail Design
邮件设计
Design high-converting marketing emails with AI-generated visuals via inference.sh CLI.
通过inference.sh CLI工具,利用AI生成的视觉素材设计高转化率的营销邮件。
Quick Start
快速开始
bash
curl -fsSL https://cli.inference.sh | sh && infsh loginbash
curl -fsSL https://cli.inference.sh | sh && infsh loginGenerate email header banner
Generate email header banner
infsh app run infsh/html-to-image --input '{
"html": "<div style="width:600px;height:250px;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;align-items:center;justify-content:center;font-family:system-ui;color:white;text-align:center"><div><h1 style="font-size:36px;margin:0">Spring Sale — 30% Off</h1><p style="font-size:18px;opacity:0.9">This weekend only</p></div></div>"
}'
undefinedinfsh app run infsh/html-to-image --input '{
"html": "<div style="width:600px;height:250px;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;align-items:center;justify-content:center;font-family:system-ui;color:white;text-align:center"><div><h1 style="font-size:36px;margin:0">Spring Sale — 30% Off</h1><p style="font-size:18px;opacity:0.9">This weekend only</p></div></div>"
}'
undefinedEmail Width & Layout
邮件宽度与布局
| Constraint | Value | Why |
|---|---|---|
| Max width | 600px | Gmail, Outlook rendering standard |
| Mobile width | 320-414px | Responsive fallback |
| Single column | Preferred | Better mobile rendering |
| Two column | Use sparingly | Breaks on many clients |
| Image width | 600px max, 300px for 2-col | Retina: provide 2x (1200px) |
| Font size (body) | 14-16px | Below 14px is hard to read on mobile |
| Font size (heading) | 22-28px | Must be scannable |
| Line height | 1.5 | Readability on all devices |
| 约束条件 | 取值 | 原因 |
|---|---|---|
| 最大宽度 | 600px | Gmail、Outlook的渲染标准 |
| 移动端宽度 | 320-414px | 响应式降级方案 |
| 单列布局 | 推荐使用 | 移动端渲染效果更好 |
| 双列布局 | 谨慎使用 | 在多数客户端会出现显示问题 |
| 图片宽度 | 最大600px,双列布局时300px | 视网膜屏:需提供2倍尺寸(1200px) |
| 正文字号 | 14-16px | 小于14px在移动端难以阅读 |
| 标题字号 | 22-28px | 必须易于快速浏览 |
| 行高 | 1.5 | 提升全设备可读性 |
The Inverted Pyramid Layout
倒金字塔布局
The most effective email layout funnels attention to a single CTA:
┌──────────────────────────────────┐
│ HEADER IMAGE │ ← Brand/visual hook
│ (600 x 200-300) │
├──────────────────────────────────┤
│ │
│ Headline (one line) │ ← What's this about
│ │
│ 2-3 sentences of body copy │ ← Why should I care
│ explaining the value. │
│ │
│ ┌──────────────┐ │
│ │ CTA BUTTON │ │ ← One clear action
│ └──────────────┘ │
│ │
├──────────────────────────────────┤
│ Footer: Unsubscribe link │
└──────────────────────────────────┘最有效的邮件布局可将注意力引导至单一的CTA(号召性用语):
┌──────────────────────────────────┐
│ 头部图片 │ ← 品牌/视觉钩子
│ (600 x 200-300) │
├──────────────────────────────────┤
│ │
│ 标题(单行) │ ← 邮件核心内容
│ │
│ 2-3句正文描述 │ ← 用户为何关注
│ 解释核心价值。 │
│ │
│ ┌──────────────┐ │
│ │ CTA按钮 │ │ ← 清晰的单一行动指令
│ └──────────────┘ │
│ │
├──────────────────────────────────┤
│ 页脚:退订链接 │
└──────────────────────────────────┘Subject Lines
主题行
Formulas That Work
有效公式
| Formula | Example | Open Rate Impact |
|---|---|---|
| Number + benefit | "5 ways to cut your build time in half" | High |
| Question | "Are you still deploying on Fridays?" | High |
| How-to | "How to automate your reports in 3 steps" | Medium-High |
| Urgency (genuine) | "Last day: 30% off annual plans" | High (if real) |
| Personalized | "[Name], your weekly report is ready" | Very High |
| Curiosity gap | "The one feature our users can't stop talking about" | Medium-High |
| 公式 | 示例 | 对打开率的影响 |
|---|---|---|
| 数字 + 利益点 | "5种方法将构建时间缩短一半" | 高 |
| 疑问句 | "你还在周五部署代码吗?" | 高 |
| 教程式 | "3步自动化你的报表生成" | 中高 |
| 真实紧迫感 | "最后一天:年度套餐立减30%" | 高(若真实有效) |
| 个性化 | "[姓名],你的周报已生成" | 极高 |
| 好奇心缺口 | "用户疯狂讨论的那个功能是什么?" | 中高 |
Rules
规则
| Rule | Value |
|---|---|
| Length | 30-50 characters (mobile truncates at ~35) |
| Preview text | First 40-100 chars after subject — design this intentionally |
| Emoji | Max 1, at start or end, test with your audience |
| ALL CAPS | Never — triggers spam filters |
| Spam trigger words | Avoid: "free", "act now", "limited time", "click here" in subject |
| Personalization | [First name] in subject lifts open rates 20%+ |
| 规则 | 要求 |
|---|---|
| 长度 | 30-50个字符(移动端约35个字符后会被截断) |
| 预览文本 | 主题行后的前40-100个字符——需精心设计 |
| 表情符号 | 最多1个,放在开头或结尾,需针对受众测试 |
| 全大写 | 绝对禁止——会触发垃圾邮件过滤器 |
| 垃圾邮件触发词 | 避免在主题行使用:"free"、"act now"、"limited time"、"click here" |
| 个性化 | 主题行加入[名字]可提升20%+的打开率 |
Preview Text
预览文本
The preview text appears after the subject line in the inbox. Don't waste it.
❌ "View this email in your browser" (default, wasted space)
❌ "Having trouble viewing this?" (no one cares)
✅ Subject: "5 ways to cut build time"
Preview: "Number 3 saved us 6 hours per week"
✅ Subject: "Your monthly report is ready"
Preview: "Revenue up 23% — here's what drove it"预览文本会显示在收件箱的主题行下方,不要浪费这个空间。
❌ "在浏览器中查看此邮件"(默认内容,浪费空间)
❌ "无法查看此邮件?"(没人关心)
✅ 主题:"5种缩短构建时间的方法"
预览:"第3种方法每周为我们节省6小时"
✅ 主题:"你的月度报表已准备就绪"
预览:"营收增长23%——这是驱动增长的关键"Email Types
邮件类型
Welcome Email (Automated, Day 0)
欢迎邮件(自动化,注册当日发送)
| Element | Content |
|---|---|
| Subject | "Welcome to [Product] — here's what's next" |
| Header | Brand image or product screenshot |
| Body | 3-4 sentences: what they signed up for, what to expect, one quick win |
| CTA | "Complete your setup" or "Try your first [action]" |
| Timing | Immediately after signup |
| 元素 | 内容 |
|---|---|
| 主题 | "欢迎加入[产品] —— 接下来该做什么" |
| 头部 | 品牌图片或产品截图 |
| 正文 | 3-4句话:说明用户注册的内容、后续预期、一个快速上手的技巧 |
| CTA | "完成你的设置"或"尝试首次[操作]" |
| 发送时机 | 注册后立即发送 |
Promotional / Campaign
促销/活动邮件
| Element | Content |
|---|---|
| Subject | Benefit-focused, urgency if real |
| Header | Hero image showing the offer/outcome |
| Body | Problem → solution → offer → deadline |
| CTA | "Get 30% Off" or "Start Free Trial" |
| Urgency | Real deadline, not fake scarcity |
| 元素 | 内容 |
|---|---|
| 主题 | 聚焦利益点,若有真实紧迫感可加入 |
| 头部 | 展示优惠或成果的主视觉图片 |
| 正文 | 问题 → 解决方案 → 优惠 → 截止日期 |
| CTA | "立享30%折扣"或"开始免费试用" |
| 紧迫感 | 使用真实截止日期,而非虚假稀缺性 |
Product Update / Changelog
产品更新/变更日志
| Element | Content |
|---|---|
| Subject | "New: [Feature name] is here" |
| Header | Screenshot or visual of the feature |
| Body | What's new, why it matters, how to use it |
| CTA | "Try [feature]" |
| 元素 | 内容 |
|---|---|
| 主题 | "新功能:[功能名称]已上线" |
| 头部 | 功能截图或视觉展示 |
| 正文 | 新功能介绍、重要性、使用方法 |
| CTA | "试用[功能]" |
Transactional (Receipts, Confirmations)
事务性邮件(收据、确认邮件)
| Rule | Why |
|---|---|
| Clear purpose in subject | "Your order #1234 is confirmed" |
| Minimal design | Don't confuse with marketing |
| Key info above the fold | Order number, amount, date |
| No promotional content (mostly) | CAN-SPAM allows some, but keep minimal |
| 规则 | 原因 |
|---|---|
| 主题清晰表明用途 | "你的订单#1234已确认" |
| 设计简洁 | 避免与营销邮件混淆 |
| 关键信息置于首屏 | 订单号、金额、日期 |
| 尽量不含促销内容 | CAN-SPAM允许少量,但需控制 |
Header Image Design
头部图片设计
bash
undefinedbash
undefinedWelcome email header
Welcome email header
infsh app run infsh/html-to-image --input '{
"html": "<div style="width:600px;height:250px;background:linear-gradient(135deg,#2d3436,#636e72);display:flex;align-items:center;padding:40px;font-family:system-ui;color:white"><div><p style="font-size:14px;text-transform:uppercase;letter-spacing:2px;opacity:0.7;margin:0">Welcome to</p><h1 style="font-size:42px;margin:8px 0 0;font-weight:800">DataFlow</h1><p style="font-size:18px;opacity:0.8;margin-top:4px">Your data, automated</p></div></div>"
}'
infsh app run infsh/html-to-image --input '{
"html": "<div style="width:600px;height:250px;background:linear-gradient(135deg,#2d3436,#636e72);display:flex;align-items:center;padding:40px;font-family:system-ui;color:white"><div><p style="font-size:14px;text-transform:uppercase;letter-spacing:2px;opacity:0.7;margin:0">Welcome to</p><h1 style="font-size:42px;margin:8px 0 0;font-weight:800">DataFlow</h1><p style="font-size:18px;opacity:0.8;margin-top:4px">Your data, automated</p></div></div>"
}'
Sale / promotional header
Sale / promotional header
infsh app run infsh/html-to-image --input '{
"html": "<div style="width:600px;height:300px;background:linear-gradient(135deg,#e74c3c,#c0392b);display:flex;align-items:center;justify-content:center;font-family:system-ui;color:white;text-align:center"><div><p style="font-size:20px;opacity:0.9;margin:0">This Weekend Only</p><h1 style="font-size:72px;margin:8px 0;font-weight:900">30% OFF</h1><p style="font-size:18px;opacity:0.8">All annual plans. Ends Sunday.</p></div></div>"
}'
infsh app run infsh/html-to-image --input '{
"html": "<div style="width:600px;height:300px;background:linear-gradient(135deg,#e74c3c,#c0392b);display:flex;align-items:center;justify-content:center;font-family:system-ui;color:white;text-align:center"><div><p style="font-size:20px;opacity:0.9;margin:0">This Weekend Only</p><h1 style="font-size:72px;margin:8px 0;font-weight:900">30% OFF</h1><p style="font-size:18px;opacity:0.8">All annual plans. Ends Sunday.</p></div></div>"
}'
Feature announcement header with AI visual
Feature announcement header with AI visual
infsh app run falai/flux-dev-lora --input '{
"prompt": "clean modern email header banner, abstract flowing data visualization, dark blue gradient background, subtle glowing nodes and connections, tech aesthetic, minimal, no text, 600x250 equivalent",
"width": 1200,
"height": 500
}'
undefinedinfsh app run falai/flux-dev-lora --input '{
"prompt": "clean modern email header banner, abstract flowing data visualization, dark blue gradient background, subtle glowing nodes and connections, tech aesthetic, minimal, no text, 600x250 equivalent",
"width": 1200,
"height": 500
}'
undefinedCTA Buttons
CTA按钮
| Rule | Value |
|---|---|
| Width | 200-300px, not full width |
| Height | 44-50px minimum (tap target) |
| Color | High contrast with background |
| Text | Action verb + outcome: "Start Free Trial" |
| Shape | Rounded corners (4-8px border-radius) |
| Placement | Above the fold, repeated at bottom for long emails |
| Quantity | ONE primary CTA per email |
| 规则 | 要求 |
|---|---|
| 宽度 | 200-300px,不要全屏宽度 |
| 高度 | 最小44-50px(符合点击目标要求) |
| 颜色 | 与背景高对比度 |
| 文本 | 动作动词 + 结果:"开始免费试用" |
| 形状 | 圆角(4-8px边框半径) |
| 位置 | 首屏展示,长邮件底部可重复放置 |
| 数量 | 每封邮件仅保留一个主要CTA |
Bulletproof Buttons
通用兼容按钮
HTML buttons render differently across email clients. Use the "bulletproof button" technique (VML for Outlook, HTML/CSS for everything else):
html
<!-- Bulletproof button (works everywhere including Outlook) -->
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="center" bgcolor="#22c55e" style="border-radius:6px;">
<a href="https://yoursite.com/action" target="_blank"
style="font-size:16px;font-family:sans-serif;color:#ffffff;
text-decoration:none;padding:12px 24px;display:inline-block;
font-weight:bold;">
Start Free Trial
</a>
</td>
</tr>
</table>HTML按钮在不同邮件客户端的渲染效果不同。使用“通用兼容按钮”技术(Outlook使用VML,其他客户端使用HTML/CSS):
html
<!-- Bulletproof button (works everywhere including Outlook) -->
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="center" bgcolor="#22c55e" style="border-radius:6px;">
<a href="https://yoursite.com/action" target="_blank"
style="font-size:16px;font-family:sans-serif;color:#ffffff;
text-decoration:none;padding:12px 24px;display:inline-block;
font-weight:bold;">
Start Free Trial
</a>
</td>
</tr>
</table>Mobile Optimization
移动端优化
| Rule | Why |
|---|---|
| Single column layout | Multi-column breaks on mobile |
| Font minimum 14px | Smaller is unreadable |
| CTA button minimum 44px tall | Apple/Android tap target |
| Images scale to 100% width | Prevent horizontal scroll |
| Stack elements vertically | Side-by-side breaks on narrow screens |
| Test on Gmail app, Apple Mail, Outlook | The big 3 email clients |
60%+ of emails are opened on mobile. Design mobile-first.
| 规则 | 原因 |
|---|---|
| 单列布局 | 多列布局在移动端会失效 |
| 最小字号14px | 更小的字号在移动端难以阅读 |
| CTA按钮最小高度44px | 符合苹果/安卓的点击目标要求 |
| 图片自适应100%宽度 | 避免横向滚动 |
| 元素垂直堆叠 | 并排布局在窄屏会失效 |
| 在Gmail应用、Apple Mail、Outlook上测试 | 这三大邮件客户端覆盖多数用户 |
60%以上的邮件在移动端打开。 优先采用移动端优先设计。
Deliverability Checklist
可送达性检查清单
| Factor | Rule |
|---|---|
| Image-to-text ratio | Max 40% images, 60% text (spam filters flag image-heavy emails) |
| Alt text on images | Always — images blocked by default in many clients |
| Unsubscribe link | Required by law (CAN-SPAM, GDPR) — make it easy to find |
| From name | Recognizable person or brand name |
| Reply-to | Real address, not no-reply@ (hurts deliverability) |
| List hygiene | Remove bounces, clean inactive subscribers quarterly |
| SPF/DKIM/DMARC | Technical authentication — set up once, critical for inbox |
| 因素 | 规则 |
|---|---|
| 图文比例 | 图片占比最高40%,文本占比60%(垃圾邮件过滤器会标记图片过多的邮件) |
| 图片添加替代文本 | 必须添加——多数客户端默认屏蔽图片 |
| 退订链接 | 法律要求(CAN-SPAM、GDPR)——需易于找到 |
| 发件人名称 | 可识别的个人或品牌名称 |
| 回复邮箱 | 真实邮箱地址,不要使用no-reply@(会影响可送达性) |
| 邮件列表维护 | 每季度清理退信和不活跃订阅者 |
| SPF/DKIM/DMARC | 技术认证——一次性设置,对进入收件箱至关重要 |
Common Mistakes
常见错误
| Mistake | Problem | Fix |
|---|---|---|
| No preview text | Shows "View in browser" or random code | Set preview text intentionally |
| Image-only emails | Blocked images = blank email + spam risk | 60%+ text, alt text on images |
| Multiple CTAs | Decision paralysis, lower click rate | One primary CTA per email |
| Tiny text | Unreadable on mobile | Minimum 14px body, 22px headings |
| no-reply@ sender | Hurts deliverability, feels impersonal | Use real reply address |
| No mobile testing | Broken layout for 60%+ of readers | Test on Gmail app + Apple Mail |
| Missing unsubscribe | Illegal (CAN-SPAM) + spam complaints | Clear unsubscribe link in footer |
| Over-designing | Email clients render CSS inconsistently | Simple layouts, inline styles |
| Fake urgency | Erodes trust, trains users to ignore | Only use real deadlines |
| 错误 | 问题 | 修复方案 |
|---|---|---|
| 未设置预览文本 | 显示“在浏览器中查看”或随机代码 | 精心设计预览文本 |
| 纯图片邮件 | 图片被屏蔽后显示空白邮件,且增加垃圾邮件风险 | 文本占比60%以上,为图片添加替代文本 |
| 多个CTA | 导致决策瘫痪,降低点击率 | 每封邮件仅保留一个主要CTA |
| 字号过小 | 移动端难以阅读 | 正文最小14px,标题最小22px |
| 使用no-reply@作为发件人 | 影响可送达性,缺乏人情味 | 使用真实回复邮箱 |
| 未进行移动端测试 | 60%以上读者会看到破损布局 | 在Gmail应用和Apple Mail上测试 |
| 缺少退订链接 | 违反法律(CAN-SPAM),引发垃圾邮件投诉 | 页脚添加清晰的退订链接 |
| 过度设计 | 邮件客户端对CSS的渲染不一致 | 采用简洁布局,使用内联样式 |
| 虚假紧迫感 | 损害信任,使用户学会忽略 | 仅使用真实截止日期 |
Related Skills
相关技能
bash
npx skills add inference-sh/skills@landing-page-design
npx skills add inference-sh/skills@ai-image-generation
npx skills add inference-sh/skills@prompt-engineeringBrowse all apps:
infsh app listbash
npx skills add inference-sh/skills@landing-page-design
npx skills add inference-sh/skills@ai-image-generation
npx skills add inference-sh/skills@prompt-engineering浏览所有应用:
infsh app list