スキル一覧に戻る
ykzts

mailpit-testing

by ykzts

Real-time bingo application for streamers and communities.

0🍴 0📅 2026年1月22日
GitHubで見るManusで実行

SKILL.md


name: mailpit-testing description: Use Mailpit to test emails in local development. Understand email verification workflows and inspect outgoing emails without external services. metadata: author: Bingify version: "1.0"

Mailpit Local Email Testing

このスキルは、Bingifyプロジェクトでのメール機能のローカル開発・テストをカバーします。

概要

BingifyはMailpitを使用して、ローカル開発環境でメール送信のテストを行います。

Mailpit WebUIへのアクセス

http://localhost:54324

Mailpit WebUIでは、送信されたすべてのメールを確認できます。

メール送信関数

import { sendEmail } from "@/lib/mail";

export async function sendWelcomeEmail(email: string) {
  const result = await sendEmail({
    to: email,
    subject: "Welcome to Bingify",
    html: "<h1>Welcome!</h1>",
  });

  return result;
}

ServerActionsでのメール送信

"use server";

import { sendEmail } from "@/lib/mail";

export async function submitContactForm(data: unknown) {
  const validData = contactFormSchema.parse(data);

  // お問い合わせ確認メール
  await sendEmail({
    to: validData.email,
    subject: "お問い合わせありがとうございます",
    html: `<p>メッセージを受け取りました。</p>`,
  });

  return { success: true };
}

Mailpit REST API

メール情報の取得:

curl http://localhost:54324/api/v1/messages

メールをクリア

curl -X DELETE http://localhost:54324/api/v1/messages

参考

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です