Skip to content
Docs Try Aspire

MailPitContainerResource Properties

Class Properties 4 members
Resource for the MailPit server.
ConnectionStringExpression Section titled ConnectionStringExpression ReferenceExpression
ConnectionString for MailPit smtp endpoint in the form of smtp://host:port.
public ReferenceExpression ConnectionStringExpression { get; }
Host Section titled Host EndpointReferenceExpression
Gets the host endpoint reference for the SMTP endpoint.
public EndpointReferenceExpression Host { get; }
Port Section titled Port EndpointReferenceExpression
Gets the port endpoint reference for the SMTP endpoint.
public EndpointReferenceExpression Port { get; }
UriExpression Section titled UriExpression ReferenceExpression
Gets the connection URI expression for the MailPit SMTP endpoint.
public ReferenceExpression UriExpression { get; }
Format: smtp://{host}:{port}.