zenodo_accessrequests/receivers.py
def _send_notification(to, subject, template, **ctx):
    """Render a template and send as email."""
    msg = Message(
        subject,
        sender=current_app.config.get('SUPPORT_EMAIL'),
        recipients=[to]
    )
    msg.body = render_template(template, **ctx)

    send_email.delay(msg.__dict__)
def _send_notification(to, subject, template, **ctx):
    msg = Message(
        subject,
        sender=current_app.config.get('SUPPORT_EMAIL'),
        recipients=[to]
    )
    msg.body = render_template(template, **ctx)

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