protected Tuple <MailMessage, SmtpClient> GetData(MailMessageModel mailMessageModel, SmtpSettingsModel smtpSettingsModel) { PrepareSending(ref smtpSettingsModel); var message = mailMessageModel.GetMailMessage(smtpSettingsModel); var client = smtpSettingsModel.GetSmtpClient(); return(Tuple.Create(message, client)); }
protected SmtpClient GetSmtpClient(SmtpSettingsModel smtpSettingsModel) { PrepareSending(ref smtpSettingsModel); return(smtpSettingsModel.GetSmtpClient()); }