AddResendEmail
Registers Resend email sending services and configuration. The method binds EmailSettings, configures the Resend API token, registers the Resend client, and exposes the package mail sender through IMailService.
Call this method once during application startup before resolving services that send email. After registration, application services should depend on IMailService and send classes that inherit from BaseMailTemplate.
Usage
WARNING
Requires an Email section in application configuration, usually from appsettings.json.
csharp
using AlmightyShogun.Resend.Utils;
builder.Services.AddResendEmail(builder.Configuration);Parameters
configuration: IConfiguration
Application configuration containing the Email section.
Returns
TheIServiceCollection instance with Resend email services configured.Type signature
csharp
public IServiceCollection AddResendEmail(
IConfiguration configuration
);