comparison messages/views.py @ 892:79a71b9d0a2a

Use Reply-To header when sending mail from other users. See issue #81.
author Brian Neal <bgneal@gmail.com>
date Mon, 16 Feb 2015 20:30:48 -0600
parents cf486a8e8b43
children 62cfdddd584a
comparison
equal deleted inserted replaced
891:24fc302f9076 892:79a71b9d0a2a
397 'site': site, 397 'site': site,
398 'user': user, 398 'user': user,
399 'msgs': msgs, 399 'msgs': msgs,
400 'admin_email': admin_email, 400 'admin_email': admin_email,
401 }) 401 })
402 send_mail(subject, msg_body, from_email, [email_addr], defer=False) 402 send_mail(subject, msg_body, from_email, [email_addr])
403 403
404 msg = '{} message{} sent to email.'.format(count, '' if count == 1 else 's') 404 msg = '{} message{} sent to email.'.format(count, '' if count == 1 else 's')
405 if count > 0: 405 if count > 0:
406 django_messages.success(request, msg) 406 django_messages.success(request, msg)
407 else: 407 else: