feat: implement communications module with SMTP settings, email logging, and frontend UI

This commit is contained in:
2025-12-12 11:19:25 +01:00
parent dedd4f4e69
commit 9174e75be0
19 changed files with 727 additions and 9 deletions

View File

@@ -0,0 +1,14 @@
using System;
using Zentral.Domain;
namespace Zentral.Domain.Entities.Communications;
public class EmailLog : BaseEntity
{
public DateTime SentDate { get; set; }
public string Sender { get; set; } = string.Empty;
public string Recipient { get; set; } = string.Empty;
public string Subject { get; set; } = string.Empty;
public string Status { get; set; } = string.Empty; // "Success", "Failed"
public string? ErrorMessage { get; set; }
}

View File

@@ -0,0 +1,7 @@
namespace Zentral.Domain.Interfaces;
public interface IEmailSender
{
Task SendEmailAsync(string to, string subject, string body, bool isHtml = true);
Task SendEmailAsync(string to, string subject, string body, List<string> attachments, bool isHtml = true);
}