def send_created_mail(request): body = jinja_mail_env.get_template( 'account/mail_templates/account-created.jinja', ).render( request=request, semesterly_quota=SEMESTERLY_QUOTA, ) send_mail(request.email, '[OCF] Your account has been created!', body)
def send_rejected_mail(request, reason): body = jinja_mail_env.get_template( 'account/mail_templates/account-rejected.jinja', ).render( request=request, reason=reason) send_mail(request.email, '[OCF] Your account request has been rejected', body)
def send_rejected_mail(request, reason): body = jinja_mail_env.get_template( 'account/mail_templates/account-rejected.jinja', ).render(request=request, reason=reason) send_mail(request.email, '[OCF] Your account request has been rejected', body)