email-service-integration
SMTPや外部サービス、テンプレートなどを活用し、メール送信機能や業務フローを構築、トランザクションメールの送信などを効率的に行うためのメールサービス連携を可能にするSkill。
📜 元の英語説明(参考)
Integrate email services with backends using SMTP, third-party providers, templates, and asynchronous sending. Use when implementing email functionality, sending transactional emails, and managing email workflows.
🇯🇵 日本人クリエイター向け解説
SMTPや外部サービス、テンプレートなどを活用し、メール送信機能や業務フローを構築、トランザクションメールの送信などを効率的に行うためのメールサービス連携を可能にするSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o email-service-integration.zip https://jpskill.com/download/21416.zip && unzip -o email-service-integration.zip && rm email-service-integration.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/21416.zip -OutFile "$d\email-service-integration.zip"; Expand-Archive "$d\email-service-integration.zip" -DestinationPath $d -Force; ri "$d\email-service-integration.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
email-service-integration.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
email-service-integrationフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 7
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
メールサービス連携
目次
概要
SMTP連携、サードパーティのメールプロバイダー(SendGrid、Mailgun、AWS SES)、HTMLテンプレート、メール検証、再試行メカニズム、および適切なエラー処理を備えた包括的なメールシステムを構築します。
使用場面
- トランザクションメールの送信
- ウェルカム/確認メールの実装
- パスワードリセットフローの作成
- 通知メールの送信
- メールテンプレートの構築
- 一括メールキャンペーンの管理
クイックスタート
最小限の動作例:
# config.py
import os
class EmailConfig:
MAIL_SERVER = os.getenv('MAIL_SERVER', 'smtp.gmail.com')
MAIL_PORT = int(os.getenv('MAIL_PORT', 587))
MAIL_USE_TLS = os.getenv('MAIL_USE_TLS', True)
MAIL_USERNAME = os.getenv('MAIL_USERNAME')
MAIL_PASSWORD = os.getenv('MAIL_PASSWORD')
MAIL_DEFAULT_SENDER = os.getenv('MAIL_DEFAULT_SENDER', 'noreply@example.com')
# email_service.py
from flask_mail import Mail, Message
from flask import render_template_string
import logging
from datetime import datetime
import smtplib
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
logger = logging.getLogger(__name__)
mail = Mail()
class EmailService:
def __init__(self, app=None):
// ... (完全な実装についてはリファレンスガイドを参照してください)
リファレンスガイド
references/ ディレクトリにある詳細な実装です。
| ガイド | 内容 |
|---|---|
| Python/Flask with SMTP | Python/FlaskとSMTP |
| Node.js with SendGrid | Node.jsとSendGrid |
| Email Templates with Mjml | Mjmlによるメールテンプレート |
| FastAPI Email with Background Tasks | バックグラウンドタスクによるFastAPIメール |
| Email Validation and Verification | メール検証と確認 |
ベストプラクティス
✅ 実施すべきこと
- 信頼性のためにトランザクションメールプロバイダーを使用する
- 一貫性のためにメールテンプレートを実装する
- 購読解除リンクを追加する(法律で義務付けられています)
- メール送信にバックグラウンドタスクを使用する
- 適切なエラー処理と再試行を実装する
- 送信する前にメールアドレスを検証する
- 乱用を防ぐためにレート制限を追加する
- メール配信とバウンスを監視する
- SMTP認証を使用する
- 開発環境でメールをテストする
❌ 実施すべきでないこと
- リクエストハンドラーでメールを同期的に送信する
- パスワードをコードに保存する
- 機密情報をメールで送信する
- 機密性の高い操作に一般的なメールアドレスを使用する
- メール検証をスキップする
- バウンスおよび苦情通知を無視する
- インラインスタイルを過度に使用したHTMLメールを使用する
- 失敗したメール配信の処理を忘れる
- 適切なテンプレートなしでメールを送信する
- 同意なしにメールアドレスを保存する
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Email Service Integration
Table of Contents
Overview
Build comprehensive email systems with SMTP integration, third-party email providers (SendGrid, Mailgun, AWS SES), HTML templates, email validation, retry mechanisms, and proper error handling.
When to Use
- Sending transactional emails
- Implementing welcome/confirmation emails
- Creating password reset flows
- Sending notification emails
- Building email templates
- Managing bulk email campaigns
Quick Start
Minimal working example:
# config.py
import os
class EmailConfig:
MAIL_SERVER = os.getenv('MAIL_SERVER', 'smtp.gmail.com')
MAIL_PORT = int(os.getenv('MAIL_PORT', 587))
MAIL_USE_TLS = os.getenv('MAIL_USE_TLS', True)
MAIL_USERNAME = os.getenv('MAIL_USERNAME')
MAIL_PASSWORD = os.getenv('MAIL_PASSWORD')
MAIL_DEFAULT_SENDER = os.getenv('MAIL_DEFAULT_SENDER', 'noreply@example.com')
# email_service.py
from flask_mail import Mail, Message
from flask import render_template_string
import logging
from datetime import datetime
import smtplib
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
logger = logging.getLogger(__name__)
mail = Mail()
class EmailService:
def __init__(self, app=None):
// ... (see reference guides for full implementation)
Reference Guides
Detailed implementations in the references/ directory:
| Guide | Contents |
|---|---|
| Python/Flask with SMTP | Python/Flask with SMTP |
| Node.js with SendGrid | Node.js with SendGrid |
| Email Templates with Mjml | Email Templates with Mjml |
| FastAPI Email with Background Tasks | FastAPI Email with Background Tasks |
| Email Validation and Verification | Email Validation and Verification |
Best Practices
✅ DO
- Use transactional email providers for reliability
- Implement email templates for consistency
- Add unsubscribe links (required by law)
- Use background tasks for email sending
- Implement proper error handling and retries
- Validate email addresses before sending
- Add rate limiting to prevent abuse
- Monitor email delivery and bounces
- Use SMTP authentication
- Test emails in development environment
❌ DON'T
- Send emails synchronously in request handlers
- Store passwords in code
- Send sensitive information in emails
- Use generic email addresses for sensitive operations
- Skip email validation
- Ignore bounce and complaint notifications
- Use HTML email with inline styles excessively
- Forget to handle failed email deliveries
- Send emails without proper templates
- Store email addresses without consent
同梱ファイル
※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。
- 📄 SKILL.md (3,255 bytes)
- 📎 references/email-templates-with-mjml.md (1,482 bytes)
- 📎 references/email-validation-and-verification.md (1,335 bytes)
- 📎 references/fastapi-email-with-background-tasks.md (1,890 bytes)
- 📎 references/nodejs-with-sendgrid.md (4,516 bytes)
- 📎 references/pythonflask-with-smtp.md (5,264 bytes)
- 📎 scripts/validate-pipeline.sh (502 bytes)