# PostaSystemSmtpOptions Properties

- Package: [CommunityToolkit.Aspire.Hosting.Posta](/reference/api/csharp/communitytoolkit.aspire.hosting.posta.md)
- Type: [PostaSystemSmtpOptions](/reference/api/csharp/communitytoolkit.aspire.hosting.posta/postasystemsmtpoptions.md)
- Kind: `Properties`
- Members: `6`

Parameter-based configuration options for Posta system SMTP notifications.

<a id="encryption"></a>

## Encryption

- Name: `Encryption`
- Modifiers: `nullable` `get; set`
- Returns: `IResourceBuilder<ParameterResource>`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/4ff8268fbd97ddd23cb73dc8eff9cc92718156d1/src/CommunityToolkit.Aspire.Hosting.Posta/PostaSystemSmtpOptions.cs)

Gets or sets the system SMTP encryption mode: none, ssl, or starttls.

```csharp
public IResourceBuilder<ParameterResource>? Encryption { get; set; }
```

<a id="from"></a>

## From

- Name: `From`
- Modifiers: `nullable` `get; set`
- Returns: `IResourceBuilder<ParameterResource>`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/4ff8268fbd97ddd23cb73dc8eff9cc92718156d1/src/CommunityToolkit.Aspire.Hosting.Posta/PostaSystemSmtpOptions.cs)

Gets or sets the system SMTP from address.

```csharp
public IResourceBuilder<ParameterResource>? From { get; set; }
```

<a id="host"></a>

## Host

- Name: `Host`
- Modifiers: `nullable` `get; set`
- Returns: `IResourceBuilder<ParameterResource>`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/4ff8268fbd97ddd23cb73dc8eff9cc92718156d1/src/CommunityToolkit.Aspire.Hosting.Posta/PostaSystemSmtpOptions.cs)

Gets or sets the system SMTP server host used for platform notifications.

```csharp
public IResourceBuilder<ParameterResource>? Host { get; set; }
```

<a id="password"></a>

## Password

- Name: `Password`
- Modifiers: `nullable` `get; set`
- Returns: `IResourceBuilder<ParameterResource>`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/4ff8268fbd97ddd23cb73dc8eff9cc92718156d1/src/CommunityToolkit.Aspire.Hosting.Posta/PostaSystemSmtpOptions.cs)

Gets or sets the system SMTP password.

```csharp
public IResourceBuilder<ParameterResource>? Password { get; set; }
```

<a id="port"></a>

## Port

- Name: `Port`
- Modifiers: `nullable` `get; set`
- Returns: `IResourceBuilder<ParameterResource>`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/4ff8268fbd97ddd23cb73dc8eff9cc92718156d1/src/CommunityToolkit.Aspire.Hosting.Posta/PostaSystemSmtpOptions.cs)

Gets or sets the system SMTP server port.

```csharp
public IResourceBuilder<ParameterResource>? Port { get; set; }
```

<a id="username"></a>

## Username

- Name: `Username`
- Modifiers: `nullable` `get; set`
- Returns: `IResourceBuilder<ParameterResource>`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/4ff8268fbd97ddd23cb73dc8eff9cc92718156d1/src/CommunityToolkit.Aspire.Hosting.Posta/PostaSystemSmtpOptions.cs)

Gets or sets the system SMTP username.

```csharp
public IResourceBuilder<ParameterResource>? Username { get; set; }
```
