Use an appropriate name in the Reply-To header

Use "Site Name <>" for the Reply-To header when the reply is to the site or a public topic.

Use "username <>" for the Reply-To header only when the reply is to a private message topic.
This commit is contained in:
Peter N Lewis
2014-06-06 21:09:00 +08:00
parent 72130357ed
commit 0af1242aa8
2 changed files with 17 additions and 1 deletions

View File

@@ -215,6 +215,7 @@ class UserNotifications < ActionMailer::Base
username: from_alias,
add_unsubscribe_link: true,
allow_reply_by_email: allow_reply_by_email,
private_reply: post.topic.private_message?,
include_respond_instructions: !user.suspended?,
template: template,
html_override: html,