Class SmtpSettings
Typed configuration options for SMTP settings.
Namespace: Umbraco.Cms.Core.Configuration.Models
Assembly: Umbraco.Core.dll
Syntax
public class SmtpSettings : ValidatableEntryBase
Properties
View SourceDeliveryMethod
Gets or sets a value for the SMTP delivery method.
Declaration
public SmtpDeliveryMethod DeliveryMethod { get; set; }
Property Value
| Type | Description |
|---|---|
| SmtpDeliveryMethod |
EmailExpiration
Gets or sets a value for the time until an email expires.
Declaration
public TimeSpan? EmailExpiration { get; set; }
Property Value
| Type | Description |
|---|---|
| TimeSpan? |
From
Gets or sets a value for the SMTP from address to use for messages.
Declaration
[Required]
[EmailAddress]
public string From { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Host
Gets or sets a value for the SMTP host.
Declaration
public string? Host { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Password
Gets or sets a value for the SMTP password.
Declaration
public string? Password { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
PickupDirectoryLocation
Gets or sets a value for the SMTP pick-up directory.
Declaration
public string? PickupDirectoryLocation { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Port
Gets or sets a value for the SMTP port.
Declaration
public int Port { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
SecureSocketOptions
Gets or sets a value for the secure socket options.
Declaration
public SecureSocketOptions SecureSocketOptions { get; set; }
Property Value
| Type | Description |
|---|---|
| SecureSocketOptions |
Username
Gets or sets a value for the SMTP user name.
Declaration
public string? Username { get; set; }
Property Value
| Type | Description |
|---|---|
| string |