FIX: Change email from to not have via site_name for group SMTP (#13788)

We now use the group's full name in group SMTP emails, so we are dropping the via #{site_name}. If group owners still want this they can just change the full name of the group.
This commit is contained in:
Martin Brennan
2021-07-20 11:56:04 +10:00
committed by GitHub
parent e3144fc0c7
commit 0dadd61d27
3 changed files with 7 additions and 6 deletions

View File

@@ -48,7 +48,7 @@ class GroupSmtpMailer < ActionMailer::Base
locale: SiteSetting.default_locale,
delivery_method_options: delivery_options,
from: from_group.email_username,
from_alias: I18n.t('email_from', user_name: group_name, site_name: Email.site_title),
from_alias: I18n.t('email_from_without_site', user_name: group_name),
html_override: html_override(post),
cc: cc_addresses
)