def send_mail(subject, text, from_email, rec_list, html=None):

        msg = EmailMultiAlternatives(subject, text, from_email, rec_list)
        if html:
            msg.attach_alternative(html, "text/html")
        msg.send(fail_silently=True)


# TODO: move to txt template
Main event loop
dataset/ETHPy150Open slav0nic/djangobb/djangobb_forum/subscription.py/send_mail--crossover with--dataset/ETHPy150Open gapato/livestreamer-curses/src/livestreamer_curses/streamlist.py/StreamList.run