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', +)