Пример #1
0
 public void SendMail(string subject, string receivers, string htmlTemplate, NameValueCollection expansionValues, bool isHtmlBody)
 {
     LogSend(subject, receivers);
     SmtpMailService.SendMail(subject, receivers, _mailOptions.SmtpUserName, htmlTemplate, expansionValues, isHtmlBody, _mailOptions.SmtpServer, _mailOptions.SmtpPort, _mailOptions.SmtpUserName, _mailOptions.SmtpPassword, _mailOptions.SmtpEnableSSL);
 }
Пример #2
0
 public void SendMail(string subject, string receivers, string messageBody, bool isHtmlBody)
 {
     LogSend(subject, receivers);
     SmtpMailService.SendMail(subject, receivers, _mailOptions.SmtpUserName, messageBody, isHtmlBody, _mailOptions.SmtpServer, _mailOptions.SmtpPort, _mailOptions.SmtpUserName, _mailOptions.SmtpPassword, _mailOptions.SmtpEnableSSL);
 }