Table of Contents

Class EmailOtpSenderService

Namespace
SEBT.Portal.Infrastructure.Services
Assembly
SEBT.Portal.Infrastructure.dll

Sends OTP codes via HTML email, rendering the template in the recipient's language. Translations are loaded from the EmailContent.{state}.json embedded resource, generated from the content CSVs via pnpm copy:generate.

public class EmailOtpSenderService : IOtpSenderService
Inheritance
object
EmailOtpSenderService
Implements

Constructors

EmailOtpSenderService(IOptionsMonitor<EmailOtpSenderServiceSettings>, ILogger<EmailOtpSenderService>, ISmtpClientService)

Sends OTP codes via HTML email, rendering the template in the recipient's language. Translations are loaded from the EmailContent.{state}.json embedded resource, generated from the content CSVs via pnpm copy:generate.

public EmailOtpSenderService(IOptionsMonitor<EmailOtpSenderServiceSettings> optionsMonitor, ILogger<EmailOtpSenderService> logger, ISmtpClientService smtpClientService)

Parameters

optionsMonitor IOptionsMonitor<EmailOtpSenderServiceSettings>
logger ILogger<EmailOtpSenderService>
smtpClientService ISmtpClientService

Methods

SendOtpAsync(string, string, string)

public Task<Result> SendOtpAsync(string to, string otp, string locale)

Parameters

to string
otp string
locale string

Returns

Task<Result>