mailpit-integration

Route SMTP through Mailpit to capture and inspect emails in .NET Aspire tests.

Updated Feb 10, 2026
One-click install
npx skills add https://github.com/tientt010/Dotnet-JiraLite-Microservices --skill mailpit-integration-tientt010
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mailpit-integration
Source: https://github.com/tientt010/Dotnet-JiraLite-Microservices/tree/main/.github/skills/aspire-mailpit-integration
Command: npx skills add https://github.com/tientt010/Dotnet-JiraLite-Microservices --skill mailpit-integration-tientt010

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Local email testing becomes safe and observable by routing SMTP through Mailpit, so real emails are not sent while you verify rendering, headers, and delivery in integration tests.

Core Features & Use Cases

  • Capture all SMTP traffic for local testing without sending real mail
  • View rendered HTML, headers, and attachments in the Mailpit UI
  • Run Aspire integration tests to validate end-to-end email flows

Quick Start

Configure Mailpit in your Aspire AppHost and run tests to capture and inspect emails.

Frequently Asked Questions about mailpit-integration

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

FAQPage Schema
How do I test emails locally in .NET Aspire without sending real messages?

Test emails locally by routing SMTP traffic through a Mailpit container in your .NET Aspire AppHost, which captures all messages for inspection without performing actual delivery. This allows you to verify rendering, headers, and delivery flows safely during development.

Can I inspect email headers and HTML rendering during Aspire integration tests?

Yes, you can inspect email headers and HTML rendering during Aspire integration tests by connecting your application to the Mailpit SMTP endpoint, which captures the messages and provides a UI to view rendered HTML, headers, and attachments.

What do I need to set up Mailpit for local SMTP integration testing?

To set up local SMTP integration testing, you need a running Mailpit container, Aspire AppHost configuration to route the SMTP traffic, and test patterns that connect your application to the Mailpit SMTP endpoint to capture emails.

What is the best way to capture SMTP traffic for integration testing in an Aspire project?

The best way to capture SMTP traffic in an Aspire project is to configure a Mailpit container in the AppHost, routing all outgoing emails to Mailpit so you can validate end-to-end email flows without sending real mail.

Does Mailpit work with ASP.NET integration tests to validate email delivery flows?

Mailpit works with ASP.NET integration tests by acting as a local SMTP server that intercepts and captures emails, allowing you to verify end-to-end email delivery flows, rendering, and headers without sending real messages.

Why use Mailpit instead of a real SMTP server for local email testing?

Use Mailpit instead of a real SMTP server for local email testing to prevent accidental delivery of real emails while still capturing and inspecting all SMTP traffic, including rendered HTML, headers, and attachments in a local UI.