15 lines
453 B
Python
Raw Permalink Normal View History

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(
2023-10-15 14:12:12 +02:00
MAIL_USERNAME = os.environ["MAILER_USERNAME"],
MAIL_PASSWORD = os.environ["MAILER_PASSWORD"],
MAIL_FROM = os.environ["MAILER_FROM"],
MAIL_PORT = os.environ["MAILER_PORT"],
MAIL_SERVER = os.environ["MAILER_HOST"],
2023-10-14 22:21:16 +02:00
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
)