config mail
This commit is contained in:
parent
03ec42508c
commit
cb47e5b4eb
13
app/dependencies/mail.py
Normal file
13
app/dependencies/mail.py
Normal 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',
|
||||||
|
)
|
Loading…
x
Reference in New Issue
Block a user