Interface ISmtpService
Abstraction over SMTP email delivery. Implementations can use System.Net.Mail.SmtpClient, a third-party library, or an external API.
public interface ISmtpService
Methods
SendEmailAsync(string, string, string)
Sends an email asynchronously.
Task<bool> SendEmailAsync(string to, string subject, string body)
Parameters
tostringRecipient email address.
subjectstringEmail subject line.
bodystringEmail body (HTML or plain-text).