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 |
---|---|
System.Net.Mail.SmtpDeliveryMethod |
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 |
---|---|
System.String |
Host
Gets or sets a value for the SMTP host.
Declaration
public string Host { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Password
Gets or sets a value for the SMTP password.
Declaration
public string Password { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PickupDirectoryLocation
Gets or sets a value for the SMTP pick-up directory.
Declaration
public string PickupDirectoryLocation { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Port
Gets or sets a value for the SMTP port.
Declaration
public int Port { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
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 |
---|---|
System.String |