CommunityToolkit.Aspire.Hosting.MailPit 9.7.2

Prefix Reserved
dotnet add package CommunityToolkit.Aspire.Hosting.MailPit --version 9.7.2
                    
NuGet\Install-Package CommunityToolkit.Aspire.Hosting.MailPit -Version 9.7.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CommunityToolkit.Aspire.Hosting.MailPit" Version="9.7.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CommunityToolkit.Aspire.Hosting.MailPit" Version="9.7.2" />
                    
Directory.Packages.props
<PackageReference Include="CommunityToolkit.Aspire.Hosting.MailPit" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CommunityToolkit.Aspire.Hosting.MailPit --version 9.7.2
                    
#r "nuget: CommunityToolkit.Aspire.Hosting.MailPit, 9.7.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CommunityToolkit.Aspire.Hosting.MailPit@9.7.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CommunityToolkit.Aspire.Hosting.MailPit&version=9.7.2
                    
Install as a Cake Addin
#tool nuget:?package=CommunityToolkit.Aspire.Hosting.MailPit&version=9.7.2
                    
Install as a Cake Tool

CommunityToolkit.Hosting.MailPit

Overview

This .NET Aspire Integration runs MailPit in a container.

Usage

The MailPit integration exposes a connection string with the format endpoint=smtp://<host>:<port>. This connection string can be used to with a DbConnectionStringBuilder to get the smtp endpoint.

Example 1: Add MailPit with generated ports

var builder = DistributedApplication.CreateBuilder(args);

var mailpit = builder.AddMailPit("mailpit");

var xyz = builder.AddProject<Xyz>("application")
    .WithReference(mailpit)
    .WaitFor(mailpit);

builder.Build().Run();

Example 2: Add MailPit with user-defined ports

var builder = DistributedApplication.CreateBuilder(args);

var mailpit = builder.AddMailPit("mailpit", 80, 25);

var xyz = builder.AddProject<Xyz>("application")
    .WithReference(mailpit)
    .WaitFor(mailpit);

builder.Build().Run();
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on CommunityToolkit.Aspire.Hosting.MailPit:

Repository Stars
foxminchan/BookWorm
The practical implementation of .NET Aspire using Microservices
Version Downloads Last Updated
9.7.2 43 8/29/2025
9.7.2-beta.362 43 8/29/2025
9.7.2-beta.361 45 8/29/2025
9.7.2-beta.360 42 8/29/2025
9.7.2-beta.359 47 8/28/2025
9.7.2-beta.358 46 8/28/2025
9.7.2-beta.357 45 8/28/2025
9.7.1 57 8/27/2025
9.7.1-beta.355 46 8/27/2025
9.7.1-beta.354 43 8/27/2025
9.7.1-beta.353 46 8/27/2025
9.7.1-beta.352 43 8/27/2025
9.7.1-beta.351 44 8/27/2025
9.7.1-beta.348 123 8/14/2025
9.7.1-beta.344 62 8/10/2025
9.7.1-beta.343 222 8/8/2025
9.7.1-beta.342 192 8/7/2025
9.7.1-beta.341 191 8/6/2025
9.7.1-beta.340 176 8/5/2025
9.7.1-beta.339 178 8/5/2025
9.7.0 1,493 8/1/2025
9.7.0-beta.337 78 8/1/2025
9.7.0-beta.336 88 8/1/2025
9.7.0-beta.335 84 8/1/2025
9.7.0-beta.333 93 7/30/2025
9.6.1-beta.332 94 7/30/2025
9.6.1-beta.331 92 7/30/2025
9.6.1-beta.330 92 7/30/2025
9.6.1-beta.329 91 7/30/2025
9.6.1-beta.328 91 7/29/2025
9.6.1-beta.327 92 7/28/2025
9.6.1-beta.326 91 7/28/2025
9.6.0 1,000 7/10/2025
9.6.0-beta.324 116 7/10/2025
9.5.1-beta.323 117 7/10/2025
9.5.1-beta.322 116 7/10/2025
9.5.1-beta.321 118 7/10/2025
9.5.1-beta.320 122 7/9/2025
9.5.1-beta.319 118 7/8/2025
9.5.1-beta.318 125 7/2/2025
9.5.1-beta.317 119 6/30/2025
9.5.1-beta.315 124 6/26/2025
9.5.1-beta.314 124 6/23/2025
9.5.1-beta.313 110 6/20/2025
9.5.1-beta.312 112 6/20/2025
9.5.1-beta.311 119 6/18/2025
9.5.1-beta.310 130 6/17/2025
9.5.1-beta.309 120 6/17/2025
9.5.1-beta.308 121 6/17/2025
9.5.1-beta.307 126 6/16/2025
9.5.1-beta.306 285 6/11/2025
9.5.1-beta.305 105 6/7/2025
9.5.1-beta.304 115 6/6/2025
9.5.1-beta.303 119 6/4/2025
9.5.1-beta.302 130 6/4/2025
9.5.1-beta.301 128 6/2/2025
9.5.1-beta.300 145 5/28/2025
9.5.0 4,153 5/27/2025
9.5.0-beta.299 126 5/27/2025
9.5.0-beta.298 129 5/26/2025
9.5.0-beta.297 81 5/24/2025
9.5.0-beta.296 78 5/24/2025
9.5.0-beta.295 52 5/24/2025
9.4.1-beta.291 127 5/19/2025
9.4.1-beta.289 143 5/16/2025
9.4.1-beta.288 190 5/16/2025
9.4.1-beta.287 198 5/16/2025
9.4.1-beta.286 194 5/16/2025
9.4.1-beta.285 208 5/14/2025
9.4.1-beta.284 211 5/13/2025
9.4.1-beta.283 214 5/12/2025
9.4.1-beta.282 124 5/7/2025
9.4.1-beta.280 136 5/2/2025
9.4.1-beta.279 120 5/2/2025
9.4.1-beta.277 146 4/23/2025
9.4.1-beta.276 142 4/23/2025
9.4.1-beta.275 140 4/23/2025
9.4.1-beta.274 131 4/23/2025
9.4.1-beta.273 130 4/23/2025
9.4.1-beta.272 138 4/23/2025
9.4.1-beta.271 140 4/23/2025
9.4.1-beta.270 150 4/20/2025
9.4.0 1,470 4/20/2025
9.4.0-beta.269 138 4/20/2025
9.4.0-beta.268 144 4/20/2025
9.3.1-beta.267 133 4/20/2025
9.3.1-beta.266 62 4/19/2025
9.3.1-beta.265 164 4/15/2025
9.3.1-beta.264 165 4/15/2025
9.3.1-beta.263 171 4/15/2025
9.3.1-beta.262 174 4/15/2025
9.3.1-beta.260 141 4/10/2025
9.3.1-beta.259 144 4/8/2025
9.3.1-beta.258 137 4/8/2025
9.3.1-beta.257 137 4/8/2025
9.3.1-beta.256 135 4/8/2025
9.3.1-beta.255 146 4/8/2025
9.3.1-beta.254 143 4/8/2025
9.3.1-beta.253 154 4/1/2025
9.3.1-beta.252 116 3/27/2025
9.3.1-beta.250 119 3/27/2025
9.3.1-beta.249 118 3/27/2025
9.3.1-beta.248 118 3/27/2025
9.3.1-beta.247 120 3/27/2025
9.3.1-beta.244 465 3/25/2025
9.3.1-beta.242 464 3/24/2025
9.3.1-beta.241 133 3/19/2025
9.3.0 2,015 3/19/2025
9.3.0-beta.239 127 3/19/2025
9.2.2-beta.237 129 3/19/2025
9.2.2-beta.236 105 3/14/2025
9.2.2-beta.230 140 3/13/2025
9.2.2-beta.229 120 3/13/2025
9.2.2-beta.228 144 3/11/2025
9.2.2-beta.227 139 3/11/2025
9.2.2-beta.226 140 3/11/2025
9.2.2-beta.225 146 3/11/2025
9.2.2-beta.224 139 3/11/2025
9.2.2-beta.223 153 3/10/2025
9.2.2-beta.222 147 3/10/2025
9.2.2-beta.220 146 3/9/2025
9.2.2-beta.218 140 3/9/2025
9.2.2-beta.217 180 3/7/2025
9.2.2-beta.216 177 3/7/2025
9.2.2-beta.215 182 3/7/2025
9.2.2-beta.214 179 3/5/2025
9.2.2-beta.213 176 3/5/2025
9.2.2-beta.212 178 3/5/2025
9.2.2-beta.211 179 3/4/2025
9.2.2-beta.210 185 3/4/2025
9.2.2-beta.208 92 3/3/2025
9.2.1 989 3/3/2025
9.2.1-beta.207 103 3/2/2025
9.2.1-beta.206 75 3/1/2025
9.2.1-beta.205 85 2/27/2025
9.2.1-beta.204 68 2/26/2025
9.2.1-beta.203 76 2/26/2025
9.2.0 242 2/26/2025
9.2.0-beta.202 82 2/26/2025
9.2.0-beta.201 76 2/26/2025
9.2.0-beta.199 72 2/26/2025
9.2.0-beta.198 69 2/26/2025