namespace Features.Emails.Services; /// /// Service for sending emails. /// public interface IEmailProvider { /// Sends an email to a single recipient. /// The recipient's email address. /// The email subject line. /// The email body content. /// Whether is HTML; when it is sent as plain text. Task SendAsync(string to, string subject, string body, bool isHtml = true); /// Sends an email to multiple recipients. /// The recipients' email addresses. /// The email subject line. /// The email body content. /// Whether is HTML; when it is sent as plain text. Task SendAsync(IEnumerable to, string subject, string body, bool isHtml = true); }