Skip to content

Commit

Permalink
To emails are now BCC
Browse files Browse the repository at this point in the history
  • Loading branch information
christiansyoung committed Feb 12, 2014
1 parent 79181c2 commit 7bdc85f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/events/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from django.conf import settings
from django.contrib import messages
from django.contrib.auth.decorators import login_required, user_passes_test
from django.core.mail import send_mail
from django.core.mail import EmailMessage
from django.core.signing import Signer, BadSignature
from django.core.urlresolvers import reverse
from django.db.models import Q
Expand Down Expand Up @@ -298,7 +298,7 @@ def mail_participants(request, event_id):
# Send mail
try:

if send_mail(unicode(subject), unicode(message), from_email, to_emails, fail_silently=False):
if EmailMessage(unicode(subject), unicode(message), from_email, [], to_emails).send():
messages.success(request, _(u'Mailen ble sendt'))
return redirect(event)
else:
Expand Down

0 comments on commit 7bdc85f

Please sign in to comment.