Added email service oonfigurartino

This commit is contained in:
Khwezi Mngoma
2026-05-04 21:33:26 +02:00
parent 47534ce671
commit 604d21162a
2 changed files with 9 additions and 1 deletions
+8
View File
@@ -1,10 +1,18 @@
using LiteCharms.Infrastructure.Database;
using LiteCharms.Infrastructure.HealthChecks;
using LiteCharms.Models.Configuraton.Email;
namespace LiteCharms.Extensions;
public static class Services
{
public static IServiceCollection AddEmail(this IServiceCollection services, IConfiguration configuration)
{
services.Configure<SmtpSettings>(configuration.GetSection("Email"));
return services;
}
public static IServiceCollection AddHealthChecksSupport(this IServiceCollection services, IConfiguration configuration)
{
services.AddHealthChecks()
@@ -11,7 +11,7 @@
<!-- Nuget Package Details -->
<PropertyGroup>
<PackageId>LiteCharms.Features</PackageId>
<Version>1.0.11</Version>
<Version>1.0.12</Version>
<Authors>Khwezi Mngoma</Authors>
<Company>Lite Charms (PTY) Ltd</Company>
<Description>Feature components for Lite Charms applications.</Description>