CommunityToolkit.Aspire.Hosting.PapercutSmtp 13.1.1

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.1.1
                    
NuGet\Install-Package CommunityToolkit.Aspire.Hosting.PapercutSmtp -Version 13.1.1
                    
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.1.1" />
                    
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.1.1" />
                    
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.1.1
                    
#r "nuget: CommunityToolkit.Aspire.Hosting.PapercutSmtp, 13.1.1"
                    
#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.1.1
                    
#: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.1.1
                    
Install as a Cake Addin
#tool nuget:?package=CommunityToolkit.Aspire.Hosting.PapercutSmtp&version=13.1.1
                    
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.1.2-beta.516 0 2/9/2026
13.1.2-beta.515 39 2/2/2026
13.1.2-beta.514 41 1/30/2026
13.1.2-beta.513 43 1/29/2026
13.1.2-beta.512 43 1/29/2026
13.1.2-beta.511 42 1/28/2026
13.1.2-beta.509 40 1/20/2026
13.1.2-beta.508 45 1/19/2026
13.1.2-beta.507 42 1/19/2026
13.1.2-beta.506 52 1/16/2026
13.1.2-beta.505 47 1/16/2026
13.1.2-beta.504 42 1/16/2026
13.1.1 858 1/16/2026
13.1.1-beta.502 48 1/16/2026
13.1.0 102 1/14/2026
13.1.0-beta.499 42 1/14/2026
13.0.1-beta.498 46 1/14/2026
13.0.1-beta.486 41 1/12/2026
13.0.1-beta.468 658 12/3/2025
13.0.1-beta.467 629 12/3/2025
13.0.0 634 11/25/2025
13.0.0-beta.462 148 11/25/2025
13.0.0-beta.456 143 11/23/2025
13.0.0-beta.454 100 11/23/2025
13.0.0-beta.453 116 11/22/2025
13.0.0-beta.450 121 11/22/2025
13.0.0-beta.448 118 11/22/2025
13.0.0-beta.444 354 11/17/2025
13.0.0-beta.443 269 11/17/2025
13.0.0-beta.440 102 11/15/2025
13.0.0-beta.439 246 11/12/2025
13.0.0-beta.438 240 11/12/2025
13.0.0-beta.436 244 11/12/2025
13.0.0-beta.435 247 11/11/2025
13.0.0-beta.433 164 11/10/2025
13.0.0-beta.432 157 11/10/2025
13.0.0-beta.431 152 11/6/2025
13.0.0-beta.430 151 11/6/2025
9.9.0 758 11/3/2025
9.9.0-beta.427 163 11/3/2025
9.8.1-beta.426 157 11/3/2025
9.8.1-beta.424 148 10/28/2025
9.8.1-beta.420 139 10/27/2025
9.8.1-beta.419 141 10/27/2025
9.8.1-beta.417 149 10/27/2025
9.8.1-beta.414 144 10/24/2025
9.8.1-beta.413 147 10/22/2025
9.8.1-beta.410 140 10/16/2025
9.8.1-beta.408 140 10/16/2025
9.8.1-beta.407 138 10/16/2025
9.8.1-beta.406 143 10/15/2025
9.8.0 808 9/26/2025
9.8.0-beta.405 141 10/15/2025
9.8.0-beta.404 147 10/13/2025
9.8.0-beta.402 140 9/29/2025
9.8.0-beta.401 141 9/29/2025
9.8.0-beta.399 155 9/26/2025
9.8.0-beta.398 145 9/25/2025
9.8.0-beta.397 145 9/25/2025
9.8.0-beta.395 148 9/24/2025
9.8.0-beta.394 150 9/23/2025
9.8.0-beta.393 154 9/23/2025
9.8.0-beta.392 150 9/23/2025
9.8.0-beta.389 271 9/18/2025
9.8.0-beta.388 277 9/16/2025
9.8.0-beta.386 219 9/15/2025
9.8.0-beta.385 219 9/15/2025
9.8.0-beta.384 66 9/13/2025
9.8.0-beta.376 157 9/8/2025
9.8.0-beta.375 85 9/6/2025
9.8.0-beta.373 160 9/5/2025
9.8.0-beta.372 160 9/4/2025
9.8.0-beta.370 151 9/2/2025
9.8.0-beta.364 148 9/1/2025
9.7.2 681 8/29/2025
9.7.2-beta.362 191 8/29/2025
9.7.2-beta.361 193 8/29/2025
9.7.2-beta.360 189 8/29/2025
9.7.2-beta.359 185 8/28/2025
9.7.2-beta.358 188 8/28/2025
9.7.2-beta.357 188 8/28/2025
9.7.1 291 8/27/2025
9.7.1-beta.355 188 8/27/2025
9.7.1-beta.354 190 8/27/2025
9.7.1-beta.353 188 8/27/2025
9.7.1-beta.352 193 8/27/2025
9.7.1-beta.351 198 8/27/2025
9.7.1-beta.348 157 8/14/2025
9.7.1-beta.344 103 8/10/2025
9.7.1-beta.343 217 8/8/2025
9.7.1-beta.342 230 8/7/2025
9.7.1-beta.341 222 8/6/2025
9.7.1-beta.340 211 8/5/2025
9.7.1-beta.339 210 8/5/2025
9.7.0 445 8/1/2025
9.7.0-beta.337 106 8/1/2025
9.7.0-beta.336 119 8/1/2025
9.7.0-beta.335 121 8/1/2025
9.7.0-beta.333 127 7/30/2025
9.6.1-beta.332 128 7/30/2025
9.6.1-beta.331 124 7/30/2025
9.6.1-beta.330 115 7/30/2025
9.6.1-beta.329 120 7/30/2025
9.6.1-beta.328 132 7/29/2025
9.6.1-beta.327 139 7/28/2025
9.6.1-beta.326 134 7/28/2025
9.6.0 224 7/10/2025
9.6.0-beta.324 148 7/10/2025
9.5.1-beta.323 147 7/10/2025
9.5.1-beta.322 151 7/10/2025
9.5.1-beta.321 146 7/10/2025
9.5.1-beta.320 150 7/9/2025
9.5.1-beta.319 146 7/8/2025
9.5.1-beta.318 145 7/2/2025
9.5.1-beta.317 137 6/30/2025
9.5.1-beta.315 157 6/26/2025
9.5.1-beta.314 150 6/23/2025
9.5.1-beta.313 157 6/20/2025
9.5.1-beta.312 137 6/20/2025
9.5.1-beta.311 178 6/18/2025
9.5.1-beta.310 154 6/17/2025
9.5.1-beta.309 159 6/17/2025
9.5.1-beta.308 179 6/17/2025
9.5.1-beta.307 146 6/16/2025
9.5.1-beta.306 289 6/11/2025
9.5.1-beta.305 117 6/7/2025
9.5.1-beta.304 135 6/6/2025
9.5.1-beta.303 175 6/4/2025
9.5.1-beta.302 164 6/4/2025
9.5.1-beta.301 151 6/2/2025
9.5.1-beta.300 153 5/28/2025
9.5.0 459 5/27/2025
9.5.0-beta.299 149 5/27/2025
9.5.0-beta.298 146 5/26/2025
9.5.0-beta.297 108 5/24/2025
9.5.0-beta.296 99 5/24/2025
9.5.0-beta.295 73 5/24/2025
9.4.1-beta.291 188 5/19/2025
9.4.1-beta.289 197 5/16/2025
9.4.1-beta.288 234 5/16/2025
9.4.1-beta.287 215 5/16/2025
9.4.1-beta.286 215 5/16/2025
9.4.1-beta.285 253 5/14/2025
9.4.1-beta.284 247 5/13/2025
9.4.1-beta.283 270 5/12/2025
9.4.1-beta.282 155 5/7/2025
9.4.1-beta.280 142 5/2/2025
9.4.1-beta.279 150 5/2/2025
9.4.1-beta.277 156 4/23/2025
9.4.1-beta.276 167 4/23/2025
9.4.1-beta.275 154 4/23/2025
9.4.1-beta.274 164 4/23/2025
9.4.1-beta.273 168 4/23/2025
9.4.1-beta.272 169 4/23/2025
9.4.1-beta.271 166 4/23/2025
9.4.1-beta.270 202 4/20/2025
9.4.0 251 4/20/2025
9.4.0-beta.269 168 4/20/2025
9.4.0-beta.268 166 4/20/2025
9.3.1-beta.267 165 4/20/2025
9.3.1-beta.266 95 4/19/2025
9.3.1-beta.265 204 4/15/2025
9.3.1-beta.264 205 4/15/2025
9.3.1-beta.263 192 4/15/2025
9.3.1-beta.262 202 4/15/2025
9.3.1-beta.260 164 4/10/2025
9.3.1-beta.259 188 4/8/2025
9.3.1-beta.258 193 4/8/2025
9.3.1-beta.257 188 4/8/2025
9.3.1-beta.256 167 4/8/2025
9.3.1-beta.255 166 4/8/2025
9.3.1-beta.254 168 4/8/2025
9.3.1-beta.253 166 4/1/2025
9.3.1-beta.252 170 3/27/2025
9.3.1-beta.250 151 3/27/2025
9.3.1-beta.249 141 3/27/2025
9.3.1-beta.248 168 3/27/2025
9.3.1-beta.247 162 3/27/2025
9.3.1-beta.244 505 3/25/2025
9.3.1-beta.242 493 3/24/2025
9.3.1-beta.241 187 3/19/2025
9.3.0 406 3/19/2025
9.3.0-beta.239 155 3/19/2025
9.2.2-beta.237 158 3/19/2025
9.2.2-beta.236 133 3/14/2025
9.2.2-beta.230 170 3/13/2025
9.2.2-beta.229 180 3/13/2025
9.2.2-beta.228 166 3/11/2025
9.2.2-beta.227 182 3/11/2025
9.2.2-beta.226 172 3/11/2025
9.2.2-beta.225 169 3/11/2025
9.2.2-beta.224 207 3/11/2025
9.2.2-beta.223 175 3/10/2025
9.2.2-beta.222 180 3/10/2025
9.2.2-beta.220 189 3/9/2025
9.2.2-beta.218 161 3/9/2025
9.2.2-beta.217 237 3/7/2025
9.2.2-beta.216 240 3/7/2025
9.2.2-beta.215 207 3/7/2025
9.2.2-beta.214 208 3/5/2025
9.2.2-beta.213 205 3/5/2025
9.2.2-beta.212 216 3/5/2025
9.2.2-beta.211 202 3/4/2025
9.2.2-beta.210 244 3/4/2025
9.2.2-beta.208 103 3/3/2025
9.2.1 339 3/3/2025
9.2.1-beta.207 106 3/2/2025
9.2.1-beta.206 109 3/1/2025
9.2.1-beta.205 122 2/27/2025
9.2.1-beta.204 93 2/26/2025
9.2.1-beta.203 99 2/26/2025
9.2.0 177 2/26/2025
9.2.0-beta.202 117 2/26/2025
9.2.0-beta.201 107 2/26/2025
9.2.0-beta.199 104 2/26/2025
9.2.0-beta.198 98 2/26/2025
9.1.1-beta.197 105 2/25/2025
9.1.1-beta.196 128 2/25/2025
9.1.1-beta.195 91 2/25/2025
9.1.1-beta.194 89 2/25/2025
9.1.1-beta.193 101 2/25/2025
9.1.1-beta.192 93 2/24/2025
9.1.1-beta.191 103 2/24/2025
9.1.1-beta.190 113 2/19/2025
9.1.1-beta.189 104 2/19/2025
9.1.1-beta.188 99 2/19/2025
9.1.1-beta.187 117 2/19/2025
9.1.1-beta.183 125 2/18/2025
9.1.1-beta.182 104 2/18/2025
9.1.1-beta.181 138 2/18/2025
9.1.1-beta.180 121 2/17/2025
9.1.1-beta.178 130 2/17/2025
9.1.1-beta.177 111 2/12/2025
9.1.1-beta.176 104 2/11/2025
9.1.1-beta.175 112 2/11/2025
9.1.1-beta.173 128 2/10/2025
9.1.1-beta.169 113 2/6/2025
9.1.1-beta.168 118 2/5/2025