PhoenixKit.Modules.Emails.EmailLogData (phoenix_kit v1.7.71)

Copy Markdown View Source

Struct representing extracted email data for logging.

Constructed in Interceptor.extract_email_data/2 and passed to Emails.create_log/1 for persistence.

Fields

  • message_id - Unique message identifier
  • to - Primary recipient email address
  • from - Sender email address
  • subject - Email subject line
  • headers - Extracted email headers
  • body_preview - Truncated body preview
  • body_full - Full email body (when email_save_body is enabled)
  • attachments_count - Number of attachments
  • size_bytes - Estimated email size in bytes
  • template_name - Template identifier if applicable
  • campaign_id - Campaign identifier if applicable
  • user_uuid - Associated user UUID
  • provider - Email delivery provider name
  • configuration_set - AWS SES configuration set name
  • message_tags - Map of message tags

Summary

Types

t()

@type t() :: %PhoenixKit.Modules.Emails.EmailLogData{
  attachments_count: integer() | nil,
  body_full: String.t() | nil,
  body_preview: String.t() | nil,
  campaign_id: String.t() | nil,
  configuration_set: String.t() | nil,
  from: String.t(),
  headers: map() | nil,
  locale: String.t() | nil,
  message_id: String.t(),
  message_tags: map() | nil,
  provider: String.t() | nil,
  size_bytes: integer() | nil,
  subject: String.t(),
  template_name: String.t() | nil,
  to: String.t(),
  user_uuid: String.t() | nil
}