larust_mail/lib.rs
1//! Mail sending - Laravel's `Mail::to($user)->send(new WelcomeMail($user))`,
2//! re-exported through `larust_support::mail` (see
3//! `crates/larust-support/src/lib.rs`) so generated apps depend only on
4//! `larust-support`, never on this crate directly.
5//!
6//! `fake`'s exports (`fake`, `assert_sent`, `assert_not_sent`, `SentMail`)
7//! are deliberately **not** re-exported through `larust_support::mail` -
8//! they're testing-only (calling `fake()` from real app code would
9//! silently and permanently stop that process from ever sending real
10//! mail again). `larust-testing` reaches them by depending on this crate
11//! directly instead.
12
13mod fake;
14mod mailable;
15mod queue_job;
16mod send;
17
18pub use fake::{assert_not_sent, assert_sent, fake, SentMail};
19pub use mailable::Mailable;
20pub use queue_job::MailJob;
21pub use send::{mail, MailBuilder};