Spaces:
Sleeping
Sleeping
Download authentication/utils/account_send_email.py from FerdinandPyCode/lambda_hf_v2: direct link, hf CLI and curl.
- Browser
- Download file 363 Bytes
-
https://huggingface.co/spaces/FerdinandPyCode/lambda_hf_v2/resolve/main/authentication/utils/account_send_email.py
- Command line
-
hf download hf://spaces/FerdinandPyCode/lambda_hf_v2/authentication/utils/account_send_email.py
-
curl -L -o account_send_email.py https://huggingface.co/spaces/FerdinandPyCode/lambda_hf_v2/resolve/main/authentication/utils/account_send_email.py
363 Bytes
| from django.core.mail import send_mail | |
| def send_email_to_user(subject, message, email): | |
| """ | |
| Sert à envoyer de mails aux utilisateurs | |
| """ | |
| send_mail( | |
| f'{subject} from Deaf Traductor', | |
| f'{message}', | |
| 'deaftraductorapp@gmail.com', | |
| [email], | |
| fail_silently=False, | |
| ) |