@celery.task()
def deliver_support_email(issue_id, subject, message):
    issue = Issue.query.get(issue_id)

    if issue is None:
        return

    mail.send_message(sender=celery.conf.get('MAIL_USERNAME'),
                      recipients=[issue.email],
                      reply_to=celery.conf.get('MAIL_USERNAME'),
                      subject=subject,
                      body=message)

    return None
Send a contact message to the person who sent an issue.
dataset/ETHPy150Open nickjj/build-a-saas-app-with-flask/catwatch/blueprints/admin/tasks.py/deliver_support_email