Files
propedal-planner/email.py
2022-06-14 13:55:26 +02:00

13 lines
260 B
Python

from flask.ext.mail import Message
from app import app, mail
def send_email(to, subject, template):
msg = Message(
subject,
recipients=[to],
html=template,
sender=app.config['MAIL_DEFAULT_SENDER']
)
mail.send(msg)