mirror of
https://github.com/aykhans/portfolio-blog.git
synced 2025-09-10 08:00:44 +00:00
Added send-email feature
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
from pydantic import PostgresDsn
|
||||
from pydantic_settings import BaseSettings
|
||||
from typing import Optional
|
||||
from pathlib import Path
|
||||
|
||||
from pydantic_settings import BaseSettings
|
||||
from pydantic import (
|
||||
EmailStr,
|
||||
PostgresDsn
|
||||
)
|
||||
|
||||
|
||||
class Settings(BaseSettings):
|
||||
PROJECT_NAME: str = 'FastAPI Portfolio & Blog'
|
||||
@@ -36,5 +41,14 @@ class Settings(BaseSettings):
|
||||
path=self.POSTGRES_DB
|
||||
)
|
||||
|
||||
SMTP_SSL_TLS: bool = True
|
||||
SMTP_PORT: int = 587
|
||||
SMTP_HOST: str = "smtp.gmail.com"
|
||||
SMTP_USER: EmailStr
|
||||
SMTP_PASSWORD: str
|
||||
|
||||
EMAILS_FROM_NAME: str = PROJECT_NAME
|
||||
EMAIL_RECIPIENTS: list[EmailStr] = []
|
||||
|
||||
|
||||
settings = Settings()
|
Reference in New Issue
Block a user