diff --git a/API/ROLAC.API/Program.cs b/API/ROLAC.API/Program.cs index 8a1b651..7193b10 100644 --- a/API/ROLAC.API/Program.cs +++ b/API/ROLAC.API/Program.cs @@ -160,6 +160,18 @@ builder.Services.AddScoped(); builder.Services.AddScoped(); +// ── Notifications (email via SMTP + Line) ────────────────────────────────── +builder.Services.Configure(config.GetSection("Smtp")); +builder.Services.Configure(config.GetSection("Line")); +builder.Services.AddScoped(); +builder.Services.AddScoped(); +builder.Services.AddScoped(); +builder.Services.AddHttpClient(); + // --------------------------------------------------------------------------- // Configurable role-based permissions (RBAC matrix) // --------------------------------------------------------------------------- diff --git a/API/ROLAC.API/appsettings.json b/API/ROLAC.API/appsettings.json index 4a36c7b..5412db7 100644 --- a/API/ROLAC.API/appsettings.json +++ b/API/ROLAC.API/appsettings.json @@ -28,5 +28,18 @@ }, "Storage": { "LocalRoot": "App_Data/storage" + }, + "Smtp": { + "Host": "", + "Port": 587, + "UseSsl": true, + "User": "", + "Password": "", + "FromAddress": "noreply@rolac.org", + "FromName": "River of Life Christian Church" + }, + "Line": { + "ChannelAccessToken": "", + "ChannelSecret": "" } }