sova-mail 0.1.2

Outbound email for Sova (lettre SMTP / fake / file)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Domain events for outbound mail.

use sova_core::Event;

/// Fired after a message is accepted by the transport (fake/smtp/file).
#[derive(Debug, Clone)]
pub struct MailSent {
    pub to: Vec<String>,
    pub subject: String,
}

impl Event for MailSent {
    fn name(&self) -> &'static str {
        "mail.sent"
    }
}