diff --git a/scipost/views.py b/scipost/views.py index 8987ad5abd3e1eb8205234558f341a8093d788f2..00860ff2700a70711ccc38454ab57e063f98bce3 100644 --- a/scipost/views.py +++ b/scipost/views.py @@ -938,9 +938,12 @@ def email_group_members(request): member.last_name + ', \n\n' + form.cleaned_data['email_text']) html_template = Template( - email_text + '\n\n<p><a href="https://scipost.org">' + email_text + '\n\n' + '{% load staticfiles %}' + '<p><a href="https://scipost.org">' '<img src="{% static \'scipost/images/logo_scipost_with_bgd.jpg\' %}"></a></p>') - html_version = html_template.render() + context = Context({}) + html_version = html_template.render(context) # mail.EmailMessage(form.cleaned_data['email_subject'], # email_text, 'SciPost Admin <admin@scipost.org>', # [member.email], connection=connection).send()