Commit 67c578f0 authored by Michal Čihař's avatar Michal Čihař

Prepare for sending text+html mails

parent 7013f06e
......@@ -31,7 +31,7 @@ from registration.signals import user_registered
from django.contrib.sites.models import Site
from django.utils import translation
from django.template.loader import render_to_string
from django.core.mail import EmailMessage
from django.core.mail import EmailMultiAlternatives
from django.core.mail import mail_admins
from south.signals import post_migrate
......@@ -87,7 +87,7 @@ def send_notification_email(language, email, notification, translation_obj, cont
)
else:
# Create message
email = EmailMessage(
email = EmailMultiAlternatives(
settings.EMAIL_SUBJECT_PREFIX + subject.strip(),
body,
to=[email],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment