feat: implement communications module with SMTP settings, email logging, and frontend UI
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
7
src/backend/Zentral.Domain/Interfaces/IEmailSender.cs
Normal file
7
src/backend/Zentral.Domain/Interfaces/IEmailSender.cs
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user