2023-10-14 22:21:16 +02:00
|
|
|
from fastapi_mail import ConnectionConfig
|
2023-10-14 22:45:12 +02:00
|
|
|
from pathlib import Path
|
2023-10-14 22:21:16 +02:00
|
|
|
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,
|
2023-10-14 22:45:12 +02:00
|
|
|
TEMPLATE_FOLDER = Path(__file__).parents[1] / 'templates',
|
2023-10-14 22:21:16 +02:00
|
|
|
)
|