예제 #1
0
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)
예제 #2
0
파일: creation.py 프로젝트: jvperrin/ocflib
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)
예제 #3
0
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)
예제 #4
0
파일: creation.py 프로젝트: jvperrin/ocflib
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)