mailpit-integration

Capture SMTP traffic in Mailpit for .NET Aspire integration tests.

1.1k|101|Updated Nov 12, 2025
One-click install
npx skills add https://github.com/Aaronontheweb/dotnet-skills --skill mailpit-integration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mailpit-integration
Source: https://github.com/Aaronontheweb/dotnet-skills/tree/main/skills/aspire-mailpit-integration
Command: npx skills add https://github.com/Aaronontheweb/dotnet-skills --skill mailpit-integration

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enables local email testing by capturing all outbound messages with Mailpit instead of delivering them.

Core Features & Use Cases

  • Capture all SMTP traffic locally without delivering real emails.
  • View HTML-rendered emails, headers, and attachments in Mailpit UI.
  • Integrate with Aspire tests to assert email content and delivery.

Quick Start

Start a Mailpit container and expose SMTP (e.g., http://localhost:8025 and SMTP port 1025). Configure your Aspire project to point Smtp: Host to the container host and Smtp: Port to 1025. Run your Aspire integration tests to verify captured emails.

Frequently Asked Questions about mailpit-integration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I capture outbound emails locally without delivering them in .NET Aspire?

Capture outbound emails locally by configuring your Aspire project to route SMTP traffic to a Mailpit container, intercepting messages instead of delivering them to verify content and headers during development and CI.

What is the best way to test email content and headers in Aspire integration tests?

Testing email content in Aspire integration tests is done by pointing your Smtp configuration to the Mailpit container host and port, allowing automated tests to assert email content, headers, and delivery workflows.

Do I need a specific SMTP port to configure Mailpit with Aspire?

Configuring Mailpit with Aspire requires pointing your Smtp configuration to the container host and using SMTP port 1025, with the Mailpit UI typically exposed on http://localhost:8025 for viewing captured messages.

Can I view HTML-rendered emails and attachments captured by Mailpit?

You can view HTML-rendered emails, headers, and attachments captured by Mailpit through its local UI, allowing you to inspect outbound SMTP traffic visually before validating workflows through automated integration tests.

Does Mailpit integration work for email testing in CI environments?

Mailpit integration works for email testing in CI environments by capturing all outbound messages, satisfying requirements for verifying email content and delivery across both development and CI environments.