1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-07-31 09:24:31 +03:00

Add AWS SES backend to send email

This commit is contained in:
Quentin Gliech
2022-01-24 16:31:53 +01:00
parent 7b487e184a
commit 1355be8fb8
8 changed files with 627 additions and 173 deletions

View File

@ -223,7 +223,7 @@ impl ServerCommand {
let listener = TcpListener::bind(addr).context("could not bind address")?;
// Connect to the mail server
let mail_transport = MailTransport::try_from(&config.email.transport)?;
let mail_transport = MailTransport::from_config(&config.email.transport).await?;
mail_transport.test_connection().await?;
// Connect to the database