quivr/backend/packages/emails/send_email.py
Zineb El Bachiri 1f21c6d7f3
refactor: packages folder be 2 (#1628)
# Description

Move some folders to packages
Remove unused code
2023-11-14 14:31:02 +01:00

11 lines
220 B
Python

from typing import Dict
import resend
from models import ResendSettings
def send_email(params: Dict):
settings = ResendSettings()
resend.api_key = settings.resend_api_key
return resend.Emails.send(params)