Interface ISesClient
- Namespace
- Builvero.Application.Interfaces.Services
- Assembly
- Builvero.Application.dll
Interface for AWS SES email client operations.
public interface ISesClient
Remarks
This interface abstracts the AWS SES SDK to allow for testing and mocking.
Methods
SendEmailAsync(string, string?, List<string>, string, string, string?, List<string>?, string?, CancellationToken)
Sends an email using AWS SES.
Task<string> SendEmailAsync(string fromAddress, string? fromName, List<string> toAddresses, string subject, string htmlBody, string? textBody = null, List<string>? replyToAddresses = null, string? configurationSet = null, CancellationToken cancellationToken = default)
Parameters
fromAddressstringThe sender email address (must be verified in SES).
fromNamestringThe sender display name.
toAddressesList<string>List of recipient email addresses.
subjectstringEmail subject.
htmlBodystringHTML email body.
textBodystringPlain text email body (optional).
replyToAddressesList<string>List of reply-to email addresses (optional).
configurationSetstringSES configuration set name (optional).
cancellationTokenCancellationTokenCancellation token.
Returns
Exceptions
- Exception
Thrown when SES API returns an error.