1
总安装量
1
周安装量
#53693
全站排名
安装命令
npx skills add https://github.com/sailscastshq/boring-stack --skill email
Agent 安装分布
amp
1
opencode
1
kimi-cli
1
codex
1
claude-code
1
Skill 文档
The Boring JavaScript Stack uses sails-hook-mail for email delivery. It provides a simple API for sending emails through configurable transports (SMTP, Resend, log) with EJS-based templates and a shared layout system.
When to Use
Use this skill when:
- Configuring
sails-hook-mailinconfig/mail.js(transports, from address, mailers) - Writing EJS email templates in
views/emails/ - Using the shared email layout (
views/layouts/layout-email.ejs) - Sending emails via
sails.helpers.mail.send.with() - Setting up SMTP providers (Mailgun, SendGrid, AWS SES) or Resend
- Implementing transactional email patterns (verification, password reset, magic links, 2FA codes)
- Switching between log transport (development) and real transports (production)
Rules
Read individual rule files for detailed explanations and code examples:
- rules/getting-started.md – Sails Mail overview, config/mail.js, transports, from address
- rules/sending-emails.md – sails.helpers.mail.send API, parameters, error handling, async patterns
- rules/templates.md – EJS email templates, layout-email.ejs, template variables, examples
- rules/providers.md – SMTP config, Resend config, environment variables, per-environment setup
- rules/transactional-patterns.md – Common patterns: verification, password reset, magic link, 2FA, invitations