# PapercutSmtpContainerResource

- Module: [CommunityToolkit.Aspire.Hosting.PapercutSmtp](/reference/api/typescript/communitytoolkit.aspire.hosting.papercutsmtp.md)
- Version: `13.4.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire)

Resource for the Papercut SMTP server.

## Definition

```typescript
interface PapercutSmtpContainerResource
  extends IComputeResource,
    IExpressionValue,
    IManifestExpressionProvider,
    IResource,
    IResourceWithArgs,
    IResourceWithConnectionString,
    IResourceWithEndpoints,
    IResourceWithEnvironment,
    IResourceWithProbes,
    IResourceWithWaitSupport,
    IValueProvider,
    IValueWithReferences {
  readonly connectionStringExpression: ReferenceExpression;
  readonly host: EndpointReferenceExpression;
  readonly port: EndpointReferenceExpression;
  readonly uriExpression: ReferenceExpression;
}
```

## Properties

- `connectionStringExpression`: `ReferenceExpression` `get` -- ConnectionString for the Papercut SMTP server in the form of smtp://host:port.
- `host`: `EndpointReferenceExpression` `get` -- Gets the host endpoint reference for the SMTP endpoint.
- `port`: `EndpointReferenceExpression` `get` -- Gets the port endpoint reference for the SMTP endpoint.
- `uriExpression`: `ReferenceExpression` `get` -- Gets the connection URI expression for the Papercut SMTP endpoint.
