Set Reply-To to noreply@ explicitly in all required cases

It seems that even though we set the From to be <noreply@humbughq.com>
it's possible that when sending mail via Google it automatically sets
the From: field to be humbug@humbughq.com. Here we set Reply-To to noreply@
in all cases explicitly in order to avoid having replies sent to our
inboxes.

(imported from commit 5fa643be2b78fd632e310836bf1be862d6f1d333)
This commit is contained in:
Leo Franchi 2013-07-10 17:29:42 -04:00
parent e736e393aa
commit 2d4ba0ed4b
1 changed files with 1 additions and 0 deletions

View File

@ -1259,6 +1259,7 @@ def do_send_missedmessage_email(user_profile, missed_messages):
# There are some @-mentions mixed in with personals
template_payload['mention'] = True
template_payload['reply_warning'] = True
headers['Reply-To'] = "Nobody <noreply@humbughq.com>"
subject = "Missed Humbug%s from %s" % ('s' if len(senders) > 1 else '', sender_str)
from_email = "%s (via Humbug) <noreply@humbughq.com>" % (sender_str)