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
-
objectEmailOtpSenderService
- 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
optionsMonitorIOptionsMonitor<EmailOtpSenderServiceSettings>loggerILogger<EmailOtpSenderService>smtpClientServiceISmtpClientService
Methods
SendOtpAsync(string, string, string)
public Task<Result> SendOtpAsync(string to, string otp, string locale)
Parameters
tostringotpstringlocalestring
Returns
- Task<Result>