send mail wip

This commit is contained in:
2023-10-14 22:45:12 +02:00
parent ab7f2e99bc
commit d108c54d81
2 changed files with 5 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
from fastapi_mail import ConnectionConfig
from pathlib import Path
import os
conf = ConnectionConfig(
@@ -9,5 +10,5 @@ conf = ConnectionConfig(
MAIL_SERVER = "your mail server",
MAIL_STARTTLS = True,
MAIL_SSL_TLS = False,
TEMPLATE_FOLDER = Path(__file__).parent / 'templates',
TEMPLATE_FOLDER = Path(__file__).parents[1] / 'templates',
)