Download app/utils/mail_service.py from gitdeem/dt: direct link, hf CLI and curl.
- Browser
- Download file 339 Bytes
-
https://huggingface.co/spaces/gitdeem/dt/resolve/main/app/utils/mail_service.py
- Command line
-
hf download hf://spaces/gitdeem/dt/app/utils/mail_service.py
-
curl -L -o mail_service.py https://huggingface.co/spaces/gitdeem/dt/resolve/main/app/utils/mail_service.py
339 Bytes
| # services/email_service.py | |
| from flask_mail import Message | |
| from app.extensions import mail | |
| class EmailService: | |
| def send_verification_code(email, code): | |
| msg = Message("้ช่ฏ็ ้ฎไปถ", recipients=[email]) | |
| msg.body = f"ๆจ็้ช่ฏ็ ๆฏ๏ผ{code}๏ผๆๆๆ10ๅ้" | |
| mail.send(msg) | |