fix email friendly name

This commit is contained in:
Pete Matsyburka
2023-11-15 23:42:48 +02:00
parent c0162bccc8
commit 3c69430b94
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ class Submitter < ApplicationRecord
def friendly_name def friendly_name
if name.present? && email.present? && email.exclude?(',') if name.present? && email.present? && email.exclude?(',')
"#{name} <#{email}>" %("#{name.delete('"')}" <#{email}>)
else else
email email
end end
+1 -1
View File
@@ -94,7 +94,7 @@ class User < ApplicationRecord
def friendly_name def friendly_name
if full_name.present? if full_name.present?
"#{full_name} <#{email}>" %("#{full_name.delete('"')}" <#{email}>)
else else
email email
end end
+1 -1
View File
@@ -23,7 +23,7 @@ module ActionMailerConfigsInterceptor
if email_configs if email_configs
message.delivery_method(:smtp, build_smtp_configs_hash(email_configs)) message.delivery_method(:smtp, build_smtp_configs_hash(email_configs))
message.from = "#{email_configs.account.name} <#{email_configs.value['from_email']}>" message.from = %("#{email_configs.account.name.to_s.delete('"')}" <#{email_configs.value['from_email']}>)
else else
message.delivery_method(:test) message.delivery_method(:test)
end end