CommunityToolkit.Aspire.Hosting.PapercutSmtp 9.1.1-beta.177

Prefix Reserved
This is a prerelease version of CommunityToolkit.Aspire.Hosting.PapercutSmtp.
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 9.1.1-beta.177                
NuGet\Install-Package CommunityToolkit.Aspire.Hosting.PapercutSmtp -Version 9.1.1-beta.177                
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="9.1.1-beta.177" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CommunityToolkit.Aspire.Hosting.PapercutSmtp --version 9.1.1-beta.177                
#r "nuget: CommunityToolkit.Aspire.Hosting.PapercutSmtp, 9.1.1-beta.177"                
#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.
// Install CommunityToolkit.Aspire.Hosting.PapercutSmtp as a Cake Addin
#addin nuget:?package=CommunityToolkit.Aspire.Hosting.PapercutSmtp&version=9.1.1-beta.177&prerelease

// Install CommunityToolkit.Aspire.Hosting.PapercutSmtp as a Cake Tool
#tool nuget:?package=CommunityToolkit.Aspire.Hosting.PapercutSmtp&version=9.1.1-beta.177&prerelease                

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();
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. 
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
9.1.1-beta.190 0 2/19/2025
9.1.1-beta.189 0 2/19/2025
9.1.1-beta.188 0 2/19/2025
9.1.1-beta.187 24 2/19/2025
9.1.1-beta.183 37 2/18/2025
9.1.1-beta.182 33 2/18/2025
9.1.1-beta.181 34 2/18/2025
9.1.1-beta.180 32 2/17/2025
9.1.1-beta.178 33 2/17/2025
9.1.1-beta.177 33 2/12/2025
9.1.1-beta.176 38 2/11/2025
9.1.1-beta.175 31 2/11/2025
9.1.1-beta.173 32 2/10/2025
9.1.1-beta.169 33 2/6/2025
9.1.1-beta.168 26 2/5/2025