Commits

Anonymous committed 82fc2f4

Fix UnicodeError in email sending.

Comments (0)

Files changed (1)

djangobb_forum/views.py

         if form.is_valid():
             user = get_object_or_404(User, username=request.GET['mail_to'])
             subject = form.cleaned_data['subject']
-            body = form.cleaned_data['body'] + '\n %s %s [%s]' % (Site.objects.get_current().domain,
+            body = form.cleaned_data['body'] + u'\n %s %s [%s]' % (Site.objects.get_current().domain,
                                                                   request.user.username,
                                                                   request.user.email)
             user.email_user(subject, body, request.user.email)