# PapercutSmtpContainerResource Properties

- Package: [CommunityToolkit.Aspire.Hosting.PapercutSmtp](/reference/api/csharp/communitytoolkit.aspire.hosting.papercutsmtp.md)
- Type: [PapercutSmtpContainerResource](/reference/api/csharp/communitytoolkit.aspire.hosting.papercutsmtp/papercutsmtpcontainerresource.md)
- Kind: `Properties`
- Members: `4`

Resource for the Papercut SMTP server.

## ConnectionStringExpression

- Name: `ConnectionStringExpression`
- Modifiers: `get`
- Returns: `ReferenceExpression`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.PapercutSmtp/PapercutSmtpContainerResource.cs#L34-L35)

ConnectionString for the Papercut SMTP server in the form of smtp://host:port.

```csharp
public ReferenceExpression ConnectionStringExpression { get; }
```

## Host

- Name: `Host`
- Modifiers: `get`
- Returns: `EndpointReferenceExpression`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.PapercutSmtp/PapercutSmtpContainerResource.cs#L24)

Gets the host endpoint reference for the SMTP endpoint.

```csharp
public EndpointReferenceExpression Host { get; }
```

## Port

- Name: `Port`
- Modifiers: `get`
- Returns: `EndpointReferenceExpression`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.PapercutSmtp/PapercutSmtpContainerResource.cs#L29)

Gets the port endpoint reference for the SMTP endpoint.

```csharp
public EndpointReferenceExpression Port { get; }
```

## UriExpression

- Name: `UriExpression`
- Modifiers: `get`
- Returns: `ReferenceExpression`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.PapercutSmtp/PapercutSmtpContainerResource.cs#L43)

Gets the connection URI expression for the Papercut SMTP endpoint.

```csharp
public ReferenceExpression UriExpression { get; }
```

## Remarks

Format: `smtp://{host}:{port}`.
