Skip to content
Docs Try Aspire
Docs Try

PapercutSmtpHostingExtension Methods

Class Methods 1 member
Provides extension methods for adding Papercut SMTP to an Hosting.IDistributedApplicationBuilder.
AddPapercutSmtp(IDistributedApplicationBuilder, string, int?, int?) Section titled AddPapercutSmtp(IDistributedApplicationBuilder, string, int?, int?) extension IResourceBuilder<PapercutSmtpContainerResource>
Adds Papercut SMTP to the application model.
public static class PapercutSmtpHostingExtension
{
public static IResourceBuilder<PapercutSmtpContainerResource> AddPapercutSmtp(
this IDistributedApplicationBuilder builder,
string name,
int? httpPort = null,
int? smtpPort = null)
{
// ...
}
}
builder IDistributedApplicationBuilder The Hosting.IDistributedApplicationBuilder to add the resource to.
name string The name of the resource.
httpPort int? optional The HTTP port number for the Papercut SMTP web console.
smtpPort int? optional The SMTP port number for the Papercut SMTP container.
IResourceBuilder<PapercutSmtpContainerResource> A reference to the ApplicationModel.IResourceBuilder`1.