namespace Features.Emails.Services; /// /// Defines operations for sending account-related emails. /// public interface IEmailDispatcher { /// /// Sends a welcome email containing an account confirmation link to a newly registered user. /// /// The email is sent synchronously; the returned task completes once delivery to the mail server succeeds or fails. /// Embedded in the confirmation link sent to . Task SendRegistrationEmailAsync(string firstName, string email, string confirmationToken); /// /// Sends an email containing a fresh account confirmation link to a user who requested a resend. /// /// The email is sent synchronously; the returned task completes once delivery to the mail server succeeds or fails. /// Embedded in the confirmation link sent to . Task SendResendConfirmationEmailAsync(string firstName, string email, string confirmationToken); }