mgt c10 checkpoint
This commit is contained in:
9
backend/app/email.py
Normal file
9
backend/app/email.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from flask_mail import Message
|
||||
from app import mail
|
||||
|
||||
def send_email(subject, sender, recipients, text_body, html_body):
|
||||
msg = Message(subject, sender=sender, recipients=recipients)
|
||||
msg.body = text_body
|
||||
msg.html = html_body
|
||||
mail.send(msg)
|
||||
|
Reference in New Issue
Block a user