E Mail
Description
Important concepts
Configuration in DI
public static class OtherApplicationServicesConfig
{
public static IServiceCollection AddOtherApplicationServices(
this IServiceCollection services,
IConfiguration configuration)
{
// Pick ONE (or register multiple with different compositions).
services.AddFlexSmtpEmailProvider(configuration);
// services.AddFlexSendGridEmailProvider(configuration);
// services.AddFlexAwsSesEmailProvider(configuration);
// services.AddFlexAzureCommunicationEmailProvider(configuration);
return services;
}
}appsettings.json
Examples (template-based)
Provider considerations
Full Message Object
Templated Emails
Bulk Emails
Attachments
Key Points to Consider
Best Practices
Email Validation
Error Handling
Testing Connection
Multiple Providers
Examples
Complete Email Service
Testing
See Also
Last updated