Class EmailQueueEntity
Outbound email queue. Emails are inserted by the application layer and picked up by a background processor that delivers them via SMTP. Failed deliveries are retried up to a configurable maximum.
public class EmailQueueEntity : IVersionedEntity
- Inheritance
-
EmailQueueEntity
- Implements
- Inherited Members
Properties
Attempts
Number of delivery attempts so far.
public int Attempts { get; set; }
Property Value
Body
Plain-text or HTML email body.
public string Body { get; set; }
Property Value
ClaimedAt
UTC timestamp when this email was claimed for delivery.
public DateTime? ClaimedAt { get; set; }
Property Value
ClaimedBy
Identifier of the LoginServer that claimed this email for delivery (server name).
public string? ClaimedBy { get; set; }
Property Value
CreatedAt
UTC timestamp when the email was enqueued.
public DateTime CreatedAt { get; set; }
Property Value
ID
Primary key.
public long ID { get; set; }
Property Value
LastError
Error message from the most recent failed delivery attempt, or null.
public string? LastError { get; set; }
Property Value
RecipientEmail
Recipient email address (max 320 chars).
[MaxLength(320)]
public string RecipientEmail { get; set; }
Property Value
RecipientUsername
Associated account username for logging and rate-limiting.
public string RecipientUsername { get; set; }
Property Value
SentAt
UTC timestamp when the email was successfully sent, or null if still pending.
public DateTime? SentAt { get; set; }
Property Value
Subject
Email subject line (max 256 chars).
[MaxLength(256)]
public string Subject { get; set; }
Property Value
Version
Application-level concurrency token. Incremented on every write to detect stale updates.
public long Version { get; set; }