namespace DigitalData.MessagingService.Application.Common.Dto; public record EmailContext { #if NETFRAMEWORK public EmailAccountDto Sender { get; set; } = null!; #else public required EmailAccountDto Sender { get; init; } #endif /// /// Recipient email address /// #if NETFRAMEWORK public IEnumerable Recipients { get; set; } = null!; #else public required IEnumerable Recipients { get; init; } #endif /// /// Email subject /// #if NETFRAMEWORK public string Subject { get; set; } = null!; #else public required string Subject { get; init; } #endif /// /// Email body (HTML or plain text) /// #if NETFRAMEWORK public string Body { get; set; } = null!; #else public required string Body { get; init; } #endif /// /// Is HTML email (default: true) /// #if NETFRAMEWORK public bool IsHtml { get; set; } = true; #else public bool IsHtml { get; init; } = true; #endif /// /// Optional list of attachments to include with the email. /// Each entry may carry its content as a byte array () /// or reference a file on disk via . /// public IEnumerable Attachments { get; set; } = []; }