namespace Infrastructure.Email; /// /// Service for sending emails via SMTP. /// public interface IEmailProvider { /// /// Sends an email to a single recipient. /// /// Recipient email address /// Email subject line /// Email body (HTML or plain text) /// Whether the body is HTML (default: true) Task SendAsync(string to, string subject, string body, bool isHtml = true); /// /// Sends an email to multiple recipients. /// /// List of recipient email addresses /// Email subject line /// Email body (HTML or plain text) /// Whether the body is HTML (default: true) Task SendAsync( IEnumerable to, string subject, string body, bool isHtml = true ); }