using System.Net.Mail; using System.Threading.Tasks; namespace Abp.Net.Mail { /// /// This service can be used simply sending emails. /// public interface IEmailSender { /// /// Sends an email. /// Task SendAsync(string to, string subject, string body, bool isBodyHtml = true); /// /// Sends an email. /// void Send(string to, string subject, string body, bool isBodyHtml = true); /// /// Sends an email. /// Task SendAsync(string from, string to, string subject, string body, bool isBodyHtml = true); /// /// Sends an email. /// void Send(string from, string to, string subject, string body, bool isBodyHtml = true); /// /// Sends an email. /// /// Mail to be sent /// /// Should normalize email? /// If true, it sets sender address/name if it's not set before and makes mail encoding UTF-8. /// void Send(MailMessage mail, bool normalize = true); /// /// Sends an email. /// /// Mail to be sent /// /// Should normalize email? /// If true, it sets sender address/name if it's not set before and makes mail encoding UTF-8. /// Task SendAsync(MailMessage mail, bool normalize = true); } }