Details

Email Sender

Register the HttpClient in your services

services.AddHttpClient("emailClient", client =>
{
   client.BaseAddress = new Uri("https://my-domain.com/send-email");
});

Implement the EmailSender service

// TODO: implement email service

And register it with dependency injection

services.AddScoped<IEmailSender, EmailSender>();

Easy-peasy lemon squeezy!