Skip to main content

sova_mail/
events.rs

1//! Domain events for outbound mail.
2
3use sova_core::Event;
4
5/// Fired after a message is accepted by the transport (fake/smtp/file).
6#[derive(Debug, Clone)]
7pub struct MailSent {
8    pub to: Vec<String>,
9    pub subject: String,
10}
11
12impl Event for MailSent {
13    fn name(&self) -> &'static str {
14        "mail.sent"
15    }
16}