using Diligent.WebAPI.Contracts.Models; using System.Net.Mail; namespace Diligent.WebAPI.Business.Services.Interfaces { public interface IEmailer { DiligEmail CreateEmail(List to, string subject, string body, bool isHtml = false, DateTime? dontSendBefore = null); MailMessage GetMailMessage(List to, string subject, string body, bool isHtml = false, List cc = null); SmtpClient GetSmtpClient(); bool SendEmail(List to, string subject, string body, bool isHtml = false, List cc = null); bool SendEmailAndWriteToDb(List to, string subject, string body, bool isHtml = false, List cc = null); bool SendEmailAndWriteToDb(string to, string subject, string body, bool isHtml = false, List cc = null); Task SendEmailAndWriteToDbAsync(List to, string subject, string body, bool isHtml = false, List cc = null); Task SendEmailAndWriteToDbAsync(string to, string subject, string body, bool isHtml = false, List cc = null); Task SendEmailAsync(List to, string subject, string body, bool isHtml = false, List cc = null); Task SendEmailWithDelayAsync(List to, string subject, string body, bool isHtml = false, DateTime? dontSendBefore = null); } }