mailpit-integration

Integrate Mailpit as a local SMTP server in .NET Aspire applications.

10|Updated Jan 28, 2026
One-click install
npx skills add https://github.com/AGIBuild/Agibuild.Fulora --skill mailpit-integration-agibuild
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mailpit-integration
Source: https://github.com/AGIBuild/Agibuild.Fulora/tree/main/.cursor/skills/aspire-mailpit-integration
Command: npx skills add https://github.com/AGIBuild/Agibuild.Fulora --skill mailpit-integration-agibuild

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires MailKit, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill allows developers to test email sending functionality locally within a .NET Aspire application without actually sending emails to real recipients, streamlining the development and testing process.

Core Features & Use Cases

  • Local Email Capture: Intercepts all outgoing emails sent via SMTP.
  • Web UI for Inspection: Provides a web interface to view, inspect headers, and check HTML rendering of captured emails.
  • API for Testing: Exposes an API for programmatic access to captured emails, enabling automated verification in integration tests.
  • Use Case: When developing a user registration feature, use this Skill to ensure the welcome email is generated correctly and contains the right content, all without sending a single live email.

Quick Start

Configure your .NET Aspire application to use Mailpit for local email testing by adding the Mailpit container to your AppHost and updating your SMTP settings.

Frequently Asked Questions about mailpit-integration

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

FAQPage Schema
How do I test email sending locally in a .NET Aspire application?

You can test email sending locally by integrating Mailpit as a local SMTP server in your .NET Aspire application. This intercepts outgoing emails, allowing you to verify content, headers, and HTML rendering without sending live emails.

What is the best way to capture and inspect outgoing emails during local development?

Capturing outgoing emails during local development is best handled by Mailpit within .NET Aspire. It provides a web UI to inspect headers and HTML rendering, plus an API for automated integration testing.

Can I use Mailpit with .NET Aspire for automated integration testing?

Yes, Mailpit integrates with .NET Aspire for automated integration testing by exposing an API client. This provides programmatic access to captured emails, enabling automated verification of email content and headers.

Does the Mailpit integration require MailKit for SMTP configuration?

The Mailpit integration requires MailKit as a dependency for SMTP configuration within .NET Aspire. This combination captures outgoing emails locally for inspection and testing without delivering them to actual recipients.

How do I verify HTML rendering and headers for emails without sending them to real recipients?

To verify HTML rendering and headers without contacting real recipients, use Mailpit in .NET Aspire as a local SMTP server. It intercepts outgoing emails and provides a web interface for detailed inspection.