all repos — donkey @ 924f43708d675e88632f81eb607a680c353f562d

The main backend for forlater.email

app/mail.py (view raw)

 1from flask_mail import Message
 2from . import mail
 3
 4
 5def send_mail(to, replyto, subject, html, text):
 6    msg = Message(subject, sender="ForLater <forlater@monkagi.ga>", reply_to=replyto)
 7    msg.add_recipient(to)
 8    msg.html = html
 9    msg.body = text
10    mail.send(msg)