Fix: Outgoing email sender header translation issue (#3393)
Outgoing email-sender header translation fix for "from" Fixes #3380
This commit is contained in:
@@ -98,7 +98,8 @@ class ConversationReplyMailer < ApplicationMailer
|
|||||||
|
|
||||||
def reply_email
|
def reply_email
|
||||||
if should_use_conversation_email_address?
|
if should_use_conversation_email_address?
|
||||||
"#{assignee_name} from #{@inbox.name} <reply+#{@conversation.uuid}@#{@account.inbound_email_domain}>"
|
I18n.t('conversations.reply.email.header.reply_with_name', assignee_name: assignee_name, inbox_name: @inbox.name,
|
||||||
|
reply_email: "#{@conversation.uuid}@#{@account.inbound_email_domain}")
|
||||||
else
|
else
|
||||||
@inbox.email_address || @agent&.email
|
@inbox.email_address || @agent&.email
|
||||||
end
|
end
|
||||||
@@ -106,9 +107,11 @@ class ConversationReplyMailer < ApplicationMailer
|
|||||||
|
|
||||||
def from_email_with_name
|
def from_email_with_name
|
||||||
if should_use_conversation_email_address?
|
if should_use_conversation_email_address?
|
||||||
"#{assignee_name} from #{@inbox.name} <#{parse_email(@account.support_email)}>"
|
I18n.t('conversations.reply.email.header.from_with_name', assignee_name: assignee_name, inbox_name: @inbox.name,
|
||||||
|
from_email: parse_email(@account.support_email))
|
||||||
else
|
else
|
||||||
"#{assignee_name} from #{@inbox.name} <#{parse_email(inbox_from_email_address)}>"
|
I18n.t('conversations.reply.email.header.from_with_name', assignee_name: assignee_name, inbox_name: @inbox.name,
|
||||||
|
from_email: parse_email(inbox_from_email_address))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -93,6 +93,10 @@ en:
|
|||||||
email_input_box_message_body: "Get notified by email"
|
email_input_box_message_body: "Get notified by email"
|
||||||
csat_input_message_body: "Please rate the conversation"
|
csat_input_message_body: "Please rate the conversation"
|
||||||
reply:
|
reply:
|
||||||
|
email:
|
||||||
|
header:
|
||||||
|
from_with_name: '%{assignee_name} from %{inbox_name} <%{from_email}>'
|
||||||
|
reply_with_name: '%{assignee_name} from %{inbox_name} <reply+%{reply_email}>'
|
||||||
email_subject: "New messages on this conversation"
|
email_subject: "New messages on this conversation"
|
||||||
transcript_subject: "Conversation Transcript"
|
transcript_subject: "Conversation Transcript"
|
||||||
survey:
|
survey:
|
||||||
|
|||||||
Reference in New Issue
Block a user