mail sent over test working fully now
This commit is contained in:
@@ -13,7 +13,17 @@ static set_password: Dir<'_> = include_dir!("src/mailers/auth/set_password");
|
||||
|
||||
#[allow(clippy::module_name_repetitions)]
|
||||
pub struct AuthMailer {}
|
||||
impl Mailer for AuthMailer {}
|
||||
impl Mailer for AuthMailer {
|
||||
/// Override the framework default (`System <system@example.com>`), which any
|
||||
/// real MX rejects (`example.com` is nullMX). Must be a sender the SMTP
|
||||
/// account is allowed to send as.
|
||||
fn opts() -> mailer::MailerOpts {
|
||||
mailer::MailerOpts {
|
||||
from: "Kompress <info@kompress.sk>".to_string(),
|
||||
..Default::default()
|
||||
}
|
||||
}
|
||||
}
|
||||
impl AuthMailer {
|
||||
/// Sending welcome email the the given user
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user