Added rate limiter for send-email

This commit is contained in:
2023-09-14 21:34:31 +04:00
parent 1ff6740edc
commit 5396218c9f
7 changed files with 202 additions and 6 deletions

View File

@@ -13,7 +13,7 @@ from app.core.config import settings
def send_email_notification(
subject: str,
body: str
) -> partial:
) -> partial | None:
if settings.EMAIL_RECIPIENTS:
conf = ConnectionConfig(