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