diff --git a/ietf/utils/mail.py b/ietf/utils/mail.py index c18981d41..88f74a972 100644 --- a/ietf/utils/mail.py +++ b/ietf/utils/mail.py @@ -183,6 +183,7 @@ def send_mail(request, to, frm, subject, template, context, *args, **kwargs): The body is a text/plain rendering of the template with the context. extra is a dict of extra headers to add. ''' + context["settings"] = settings txt = render_to_string(template, context, request=request) return send_mail_text(request, to, frm, subject, txt, *args, **kwargs) @@ -628,4 +629,4 @@ def get_payload_text(msg, decode=True, default_charset="utf-8"): payload = msg.get_payload(decode=decode) payload = payload.decode(str(charset)) return payload - \ No newline at end of file +