config mail

This commit is contained in:
Valentin CZERYBA 2023-10-14 22:21:16 +02:00
parent 03ec42508c
commit cb47e5b4eb

13
app/dependencies/mail.py Normal file
View File

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