feat: add mail client
Untested
This commit is contained in:
parent
16ccf94631
commit
862e2d6709
6 changed files with 96 additions and 5 deletions
|
@ -19,6 +19,7 @@ use serde_json::Error as JsonError;
|
|||
use thiserror::Error;
|
||||
use tokio::task::JoinError;
|
||||
use toml::de::Error as TomlError;
|
||||
use lettre::{address::AddressError, transport::smtp::Error as SmtpError};
|
||||
|
||||
#[derive(Debug, Error)]
|
||||
pub enum Error {
|
||||
|
@ -54,6 +55,10 @@ pub enum Error {
|
|||
PayloadError(#[from] PayloadError),
|
||||
#[error(transparent)]
|
||||
WsClosed(#[from] actix_ws::Closed),
|
||||
#[error(transparent)]
|
||||
SmtpError(#[from] SmtpError),
|
||||
#[error(transparent)]
|
||||
SmtpAddressError(#[from] AddressError),
|
||||
#[error("{0}")]
|
||||
PasswordHashError(String),
|
||||
#[error("{0}")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue