mas_email/lib.rs
1// Copyright 2024 New Vector Ltd.
2// Copyright 2022-2024 The Matrix.org Foundation C.I.C.
3//
4// SPDX-License-Identifier: AGPL-3.0-only
5// Please see LICENSE in the repository root for full details.
6
7//! Helps sending emails to users, with different email backends
8
9#![deny(missing_docs)]
10
11mod mailer;
12mod transport;
13
14pub use lettre::{
15 Address, message::Mailbox, transport::smtp::authentication::Credentials as SmtpCredentials,
16};
17pub use mas_templates::EmailVerificationContext;
18
19pub use self::{
20 mailer::Mailer,
21 transport::{SmtpMode, Transport as MailTransport},
22};