SmtpSettings class

namespace: Serenity.Extensions   assemblySerenity.Extensions

Settings for SMTP email sending.

public class SmtpSettings

Public Members

name description
SmtpSettings() Initializes a new instance of the SmtpSettings class.
AutoUseQueue { get; set; } Whether to automatically enqueue emails instead of sending them directly.
From { get; set; } The default sender address used when a message has no From address.
Host { get; set; } The SMTP server host.
Password { get; set; } The password used to authenticate with the SMTP server.
PickupPath { get; set; } The folder where outgoing emails are written when no SMTP host is configured.
Port { get; set; } The SMTP server port.
SecureSocket { get; set; } The secure socket options used when connecting to the SMTP server.
Username { get; set; } The username used to authenticate with the SMTP server.
const SectionKey Default section key for SMTP settings.

See Also