def _send_notification(to, subject, template, **ctx):
msg = Message(<EOL>subject,<EOL>sender=current_app.config.get('<STR_LIT>'),<EOL>recipients=[to]<EOL>)<EOL>msg.body = render_template(template, **ctx)<EOL>send_email.delay(msg.__dict__)<EOL>
Render a template and send as email.