Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddPapercutSmtp

Method
📦 CommunityToolkit.Aspire.Hosting.PapercutSmtp v13.6.1
func (DistributedApplicationBuilder) AddPapercutSmtp(
name string,
options ...*AddPapercutSmtpOptions,
) PapercutSmtpContainerResource

Signature

methodAddPapercutSmtpbuilder
Adds Papercut SMTP to the application model.
AddPapercutSmtp(
name string,
options ...*AddPapercutSmtpOptions,
) PapercutSmtpContainerResource
namestringThe name of the resource.
options...*AddPapercutSmtpOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*AddPapercutSmtpOptions argument.

HttpPort*float64The HTTP port number for the Papercut SMTP web console.
SmtpPort*float64The SMTP port number for the Papercut SMTP container.
PapercutSmtpContainerResource

A reference to the IResourceBuilder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types:

typeDistributedApplicationBuilder