quivr/backend/utils/send_email.py
Matthieu Jacq cee050a2e4
feat: POST on /contact to contact quivr team by email (#1466)
# Description

Issue: #1445
Epic: #1232

## ⚠️ À rajouter en variables d'environnement

```env
RESEND_CONTACT_SALES_FROM=contact_sales@resend.dev
RESEND_CONTACT_SALES_TO=<change-me>
```
2023-10-23 17:58:45 +02:00

9 lines
218 B
Python

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