diff --git a/src/DigitalData.EmailProfiler.Application/Common/Events/OutgoingEmailEvent.cs b/src/DigitalData.EmailProfiler.Application/Common/Events/OutgoingEmailEvent.cs new file mode 100644 index 0000000..9ad63e9 --- /dev/null +++ b/src/DigitalData.EmailProfiler.Application/Common/Events/OutgoingEmailEvent.cs @@ -0,0 +1,28 @@ +namespace DigitalData.EmailProfiler.Application.Common.Events; + +public class OutgoingEmailEvent +{ + public required Guid Id { get; init; } + + /// + /// Recipient email address + /// + public required string Recipient { get; init; } + + /// + /// Email subject + /// + public required string Subject { get; init; } + + /// + /// Email body (HTML or plain text) + /// + public required string Body { get; init; } + + /// + /// Is HTML email (default: true) + /// + public bool IsHtml { get; init; } = true; + + public DateTime QueuedAt { get; init; } +} \ No newline at end of file