Skip to content

EmailSettings

Represents the Email configuration section used by Resend Utils. The package binds this record during AddResendEmail and consumes it while configuring the Resend client and rendering BaseMailTemplate instances.

Application code normally does not create this record manually. Inject IOptions<EmailSettings> only when a service needs to inspect the configured sender, brand, or shared links.

Usage

The JSON shape is documented on the configuration page. The example below shows how application services can consume the already-bound options.

csharp
using Microsoft.Extensions.Options;
using AlmightyShogun.Resend.Utils;

public sealed class EmailLinkResolver(IOptions<EmailSettings> options)
{
    private readonly EmailSettings _settings = options.Value;

    public string DashboardUrl => _settings.Links["Dashboard"];
}

Fields

ApiToken: string
Resend API token used to authenticate email send requests.

BrandName: string
Product or application name used in shared email template placeholders.

FromEmail: string
Sender email address used for outgoing messages.

FromName: string
Display name used with FromEmail in outgoing messages.

LogoUrl: string
Public logo URL rendered by the base HTML template.

AppUrl: string
Public application URL used by footer links and placeholders.

Links: Dictionary<string, string>
Named shared links that application code can use when building templates.

Template: EmailTemplateSettings
Shared footer and fallback text settings used while rendering templates.

Uses

All packages are released under the MIT License.