CommunityToolkit.Aspire.Hosting.PapercutSmtp 13.0.0

Prefix Reserved
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package CommunityToolkit.Aspire.Hosting.PapercutSmtp --version 13.0.0
                    
NuGet\Install-Package CommunityToolkit.Aspire.Hosting.PapercutSmtp -Version 13.0.0
                    
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.PapercutSmtp" Version="13.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CommunityToolkit.Aspire.Hosting.PapercutSmtp" Version="13.0.0" />
                    
Directory.Packages.props
<PackageReference Include="CommunityToolkit.Aspire.Hosting.PapercutSmtp" />
                    
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.PapercutSmtp --version 13.0.0
                    
#r "nuget: CommunityToolkit.Aspire.Hosting.PapercutSmtp, 13.0.0"
                    
#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.PapercutSmtp@13.0.0
                    
#: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.PapercutSmtp&version=13.0.0
                    
Install as a Cake Addin
#tool nuget:?package=CommunityToolkit.Aspire.Hosting.PapercutSmtp&version=13.0.0
                    
Install as a Cake Tool

CommunityToolkit.Hosting.PapercutStmp

Overview

This .NET Aspire Integration runs Papercut SMTP in a container.

Usage

The Papercut SMTP 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 Papercut SMTP with generated ports

var builder = DistributedApplication.CreateBuilder(args);

var papercut = builder.AddPapercutSmtp("papercut");

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

builder.Build().Run();

Example 2: Add Papercut SMTP with user-defined ports

var builder = DistributedApplication.CreateBuilder(args);

var papercut = builder.AddPapercutSmtp("papercut", 80, 25);

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

builder.Build().Run();

Example 3: Get URI from connection-string using DbConnectionStringBuilder

string? papercutConnectionString = builder.Configuration.GetConnectionString("papercut");
DbConnectionStringBuilder connectionBuilder = new()
{
    ConnectionString = papercutConnectionString 
};

Uri endpoint = new(connectionBuilder["Endpoint"].ToString()!, UriKind.Absolute);
builder.Services.AddScoped(_ => new SmtpClient(endpoint.Host, endpoint.Port));
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 is compatible.  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

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
13.0.1-beta.486 23 1/12/2026
13.0.1-beta.468 652 12/3/2025
13.0.1-beta.467 621 12/3/2025
13.0.0 508 11/25/2025
13.0.0-beta.462 141 11/25/2025
13.0.0-beta.456 137 11/23/2025
13.0.0-beta.454 93 11/23/2025
13.0.0-beta.453 109 11/22/2025
13.0.0-beta.450 114 11/22/2025
13.0.0-beta.448 113 11/22/2025
13.0.0-beta.444 346 11/17/2025
13.0.0-beta.443 261 11/17/2025
13.0.0-beta.440 96 11/15/2025
13.0.0-beta.439 240 11/12/2025
13.0.0-beta.438 237 11/12/2025
13.0.0-beta.436 237 11/12/2025
13.0.0-beta.435 240 11/11/2025
13.0.0-beta.433 156 11/10/2025
13.0.0-beta.432 154 11/10/2025
13.0.0-beta.431 145 11/6/2025
13.0.0-beta.430 143 11/6/2025
9.9.0 495 11/3/2025
9.9.0-beta.427 159 11/3/2025
9.8.1-beta.426 152 11/3/2025
9.8.1-beta.424 145 10/28/2025
9.8.1-beta.420 135 10/27/2025
9.8.1-beta.419 137 10/27/2025
9.8.1-beta.417 144 10/27/2025
9.8.1-beta.414 138 10/24/2025
9.8.1-beta.413 137 10/22/2025
9.8.1-beta.410 130 10/16/2025
9.8.1-beta.408 130 10/16/2025
9.8.1-beta.407 134 10/16/2025
9.8.1-beta.406 134 10/15/2025
9.8.0 742 9/26/2025
9.8.0-beta.405 134 10/15/2025
9.8.0-beta.404 140 10/13/2025
9.8.0-beta.402 136 9/29/2025
9.8.0-beta.401 134 9/29/2025
9.8.0-beta.399 145 9/26/2025
9.8.0-beta.398 138 9/25/2025
9.8.0-beta.397 139 9/25/2025
9.8.0-beta.395 142 9/24/2025
9.8.0-beta.394 142 9/23/2025
9.8.0-beta.393 146 9/23/2025
9.8.0-beta.392 143 9/23/2025
9.8.0-beta.389 267 9/18/2025
9.8.0-beta.388 270 9/16/2025
9.8.0-beta.386 215 9/15/2025
9.8.0-beta.385 215 9/15/2025
9.8.0-beta.384 61 9/13/2025
9.8.0-beta.376 148 9/8/2025
9.8.0-beta.375 80 9/6/2025
9.8.0-beta.373 152 9/5/2025
9.8.0-beta.372 150 9/4/2025
9.8.0-beta.370 146 9/2/2025
9.8.0-beta.364 142 9/1/2025
9.7.2 671 8/29/2025
9.7.2-beta.362 182 8/29/2025
9.7.2-beta.361 187 8/29/2025
9.7.2-beta.360 184 8/29/2025
9.7.2-beta.359 180 8/28/2025
9.7.2-beta.358 183 8/28/2025
9.7.2-beta.357 182 8/28/2025
9.7.1 284 8/27/2025
9.7.1-beta.355 181 8/27/2025
9.7.1-beta.354 187 8/27/2025
9.7.1-beta.353 183 8/27/2025
9.7.1-beta.352 185 8/27/2025
9.7.1-beta.351 192 8/27/2025
9.7.1-beta.348 153 8/14/2025
9.7.1-beta.344 97 8/10/2025
9.7.1-beta.343 210 8/8/2025
9.7.1-beta.342 226 8/7/2025
9.7.1-beta.341 217 8/6/2025
9.7.1-beta.340 207 8/5/2025
9.7.1-beta.339 204 8/5/2025
9.7.0 434 8/1/2025
9.7.0-beta.337 101 8/1/2025
9.7.0-beta.336 114 8/1/2025
9.7.0-beta.335 114 8/1/2025
9.7.0-beta.333 123 7/30/2025
9.6.1-beta.332 124 7/30/2025
9.6.1-beta.331 115 7/30/2025
9.6.1-beta.330 112 7/30/2025
9.6.1-beta.329 116 7/30/2025
9.6.1-beta.328 123 7/29/2025
9.6.1-beta.327 134 7/28/2025
9.6.1-beta.326 130 7/28/2025
9.6.0 210 7/10/2025
9.6.0-beta.324 140 7/10/2025
9.5.1-beta.323 140 7/10/2025
9.5.1-beta.322 142 7/10/2025
9.5.1-beta.321 138 7/10/2025
9.5.1-beta.320 139 7/9/2025
9.5.1-beta.319 138 7/8/2025
9.5.1-beta.318 140 7/2/2025
9.5.1-beta.317 134 6/30/2025
9.5.1-beta.315 149 6/26/2025
9.5.1-beta.314 146 6/23/2025
9.5.1-beta.313 151 6/20/2025
9.5.1-beta.312 131 6/20/2025
9.5.1-beta.311 173 6/18/2025
9.5.1-beta.310 146 6/17/2025
9.5.1-beta.309 155 6/17/2025
9.5.1-beta.308 173 6/17/2025
9.5.1-beta.307 144 6/16/2025
9.5.1-beta.306 283 6/11/2025
9.5.1-beta.305 108 6/7/2025
9.5.1-beta.304 129 6/6/2025
9.5.1-beta.303 170 6/4/2025
9.5.1-beta.302 160 6/4/2025
9.5.1-beta.301 145 6/2/2025
9.5.1-beta.300 146 5/28/2025
9.5.0 439 5/27/2025
9.5.0-beta.299 141 5/27/2025
9.5.0-beta.298 142 5/26/2025
9.5.0-beta.297 101 5/24/2025
9.5.0-beta.296 97 5/24/2025
9.5.0-beta.295 64 5/24/2025
9.4.1-beta.291 179 5/19/2025
9.4.1-beta.289 189 5/16/2025
9.4.1-beta.288 226 5/16/2025
9.4.1-beta.287 212 5/16/2025
9.4.1-beta.286 208 5/16/2025
9.4.1-beta.285 244 5/14/2025
9.4.1-beta.284 239 5/13/2025
9.4.1-beta.283 260 5/12/2025
9.4.1-beta.282 150 5/7/2025
9.4.1-beta.280 135 5/2/2025
9.4.1-beta.279 143 5/2/2025
9.4.1-beta.277 153 4/23/2025
9.4.1-beta.276 161 4/23/2025
9.4.1-beta.275 145 4/23/2025
9.4.1-beta.274 158 4/23/2025
9.4.1-beta.273 160 4/23/2025
9.4.1-beta.272 155 4/23/2025
9.4.1-beta.271 158 4/23/2025
9.4.1-beta.270 194 4/20/2025
9.4.0 246 4/20/2025
9.4.0-beta.269 162 4/20/2025
9.4.0-beta.268 160 4/20/2025
9.3.1-beta.267 157 4/20/2025
9.3.1-beta.266 89 4/19/2025
9.3.1-beta.265 195 4/15/2025
9.3.1-beta.264 197 4/15/2025
9.3.1-beta.263 186 4/15/2025
9.3.1-beta.262 193 4/15/2025
9.3.1-beta.260 160 4/10/2025
9.3.1-beta.259 182 4/8/2025
9.3.1-beta.258 188 4/8/2025
9.3.1-beta.257 179 4/8/2025
9.3.1-beta.256 162 4/8/2025
9.3.1-beta.255 160 4/8/2025
9.3.1-beta.254 161 4/8/2025
9.3.1-beta.253 159 4/1/2025
9.3.1-beta.252 165 3/27/2025
9.3.1-beta.250 144 3/27/2025
9.3.1-beta.249 136 3/27/2025
9.3.1-beta.248 161 3/27/2025
9.3.1-beta.247 160 3/27/2025
9.3.1-beta.244 499 3/25/2025
9.3.1-beta.242 485 3/24/2025
9.3.1-beta.241 185 3/19/2025
9.3.0 397 3/19/2025
9.3.0-beta.239 152 3/19/2025
9.2.2-beta.237 149 3/19/2025
9.2.2-beta.236 123 3/14/2025
9.2.2-beta.230 160 3/13/2025
9.2.2-beta.229 176 3/13/2025
9.2.2-beta.228 161 3/11/2025
9.2.2-beta.227 178 3/11/2025
9.2.2-beta.226 164 3/11/2025
9.2.2-beta.225 162 3/11/2025
9.2.2-beta.224 195 3/11/2025
9.2.2-beta.223 167 3/10/2025
9.2.2-beta.222 175 3/10/2025
9.2.2-beta.220 184 3/9/2025
9.2.2-beta.218 156 3/9/2025
9.2.2-beta.217 232 3/7/2025
9.2.2-beta.216 232 3/7/2025
9.2.2-beta.215 202 3/7/2025
9.2.2-beta.214 203 3/5/2025
9.2.2-beta.213 203 3/5/2025
9.2.2-beta.212 211 3/5/2025
9.2.2-beta.211 195 3/4/2025
9.2.2-beta.210 239 3/4/2025
9.2.2-beta.208 100 3/3/2025
9.2.1 327 3/3/2025
9.2.1-beta.207 101 3/2/2025
9.2.1-beta.206 102 3/1/2025
9.2.1-beta.205 113 2/27/2025
9.2.1-beta.204 85 2/26/2025
9.2.1-beta.203 89 2/26/2025
9.2.0 166 2/26/2025
9.2.0-beta.202 110 2/26/2025
9.2.0-beta.201 102 2/26/2025
9.2.0-beta.199 97 2/26/2025
9.2.0-beta.198 94 2/26/2025
9.1.1-beta.197 98 2/25/2025
9.1.1-beta.196 122 2/25/2025
9.1.1-beta.195 84 2/25/2025
9.1.1-beta.194 86 2/25/2025
9.1.1-beta.193 94 2/25/2025
9.1.1-beta.192 89 2/24/2025
9.1.1-beta.191 97 2/24/2025
9.1.1-beta.190 107 2/19/2025
9.1.1-beta.189 97 2/19/2025
9.1.1-beta.188 94 2/19/2025
9.1.1-beta.187 110 2/19/2025
9.1.1-beta.183 114 2/18/2025
9.1.1-beta.182 100 2/18/2025
9.1.1-beta.181 129 2/18/2025
9.1.1-beta.180 117 2/17/2025
9.1.1-beta.178 122 2/17/2025
9.1.1-beta.177 100 2/12/2025
9.1.1-beta.176 101 2/11/2025
9.1.1-beta.175 102 2/11/2025
9.1.1-beta.173 125 2/10/2025
9.1.1-beta.169 108 2/6/2025
9.1.1-beta.168 106 2/5/2025