コード例 #1
0
 /// <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)
 {
 }
コード例 #2
0
ファイル: RTSmtpClient.cs プロジェクト: RT-Projects/RT.Util
 /// <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)
 {
 }