Move Infrastructure.Email into Features.Emails (#288)

This commit is contained in:
Aaron Po
2026-09-11 23:46:04 -04:00
committed by GitHub
parent 7187631ebc
commit de63e9f216
12 changed files with 4 additions and 31 deletions

View File

@@ -0,0 +1,21 @@
namespace Features.Emails.Services;
/// <summary>
/// Service for sending emails.
/// </summary>
public interface IEmailProvider
{
/// <summary>Sends an email to a single recipient.</summary>
/// <param name="to">The recipient's email address.</param>
/// <param name="subject">The email subject line.</param>
/// <param name="body">The email body content.</param>
/// <param name="isHtml">Whether <paramref name="body"/> is HTML; when <see langword="false"/> it is sent as plain text.</param>
Task SendAsync(string to, string subject, string body, bool isHtml = true);
/// <summary>Sends an email to multiple recipients.</summary>
/// <param name="to">The recipients' email addresses.</param>
/// <param name="subject">The email subject line.</param>
/// <param name="body">The email body content.</param>
/// <param name="isHtml">Whether <paramref name="body"/> is HTML; when <see langword="false"/> it is sent as plain text.</param>
Task SendAsync(IEnumerable<string> to, string subject, string body, bool isHtml = true);
}