public static void UseSmtp(this JobHostConfiguration config, SmtpConfiguration smtpConfiguration = null) { if (config == null) { throw new ArgumentNullException(nameof(config)); } if (smtpConfiguration == null) { smtpConfiguration = new SmtpConfiguration(); } config.RegisterExtensionConfigProvider(new SmtpExtensionConfig(smtpConfiguration)); }
public SmtpExtensionConfig(SmtpConfiguration smtpConfiguration) { _smtpConfiguration = smtpConfiguration; }