/// <summary> /// Creates a connection to the SMTP server and authenticates the specified user.</summary> /// <param name="settings"> /// An object containing the relevant SMTP settings.</param> /// <param name="log"> /// The SMTP client logs various messages to this log at various verbosity levels.</param> /// <exception cref="RTSmtpException"> /// SMTP protocol error, or authentication failed.</exception> public RTSmtpClient(RTSmtpSettings settings, LoggerBase log = null) : this(settings.Host, settings.Port, settings.Username, settings.PasswordDecrypted, settings.Encryption, log) { }