From cb47e5b4eb045fc5b6c3dfabab7c9558dceb0e19 Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Sat, 14 Oct 2023 22:21:16 +0200 Subject: [PATCH] config mail --- app/dependencies/mail.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 app/dependencies/mail.py diff --git a/app/dependencies/mail.py b/app/dependencies/mail.py new file mode 100644 index 0000000..9750c9e --- /dev/null +++ b/app/dependencies/mail.py @@ -0,0 +1,13 @@ +from fastapi_mail import ConnectionConfig +import os + +conf = ConnectionConfig( + MAIL_USERNAME = "YourUsername", + MAIL_PASSWORD = "strong_password", + MAIL_FROM = "your@email.com", + MAIL_PORT = 587, + MAIL_SERVER = "your mail server", + MAIL_STARTTLS = True, + MAIL_SSL_TLS = False, + TEMPLATE_FOLDER = Path(__file__).parent / 'templates', +)