from flask_mail import Message from . import mail def send_mail(to, replyto, subject, html, text): msg = Message(subject, sender="forlater@monkagi.ga", reply_to=replyto) msg.add_recipient(to) msg.html = html msg.body = text mail.send(msg)