Chore: Changed from email and reply to email for conversation email (#444)
This commit is contained in:
parent
d4b3ba4baa
commit
04d347f0ee
2 changed files with 3 additions and 3 deletions
|
@ -15,7 +15,7 @@ class ConversationMailer < ApplicationMailer
|
|||
@messages = recap_messages + new_messages
|
||||
@messages = @messages.select(&:reportable?)
|
||||
|
||||
mail(to: @contact&.email, from: @agent&.email, subject: mail_subject(@messages.last))
|
||||
mail(to: @contact&.email, reply_to: @agent&.email, subject: mail_subject(@messages.last))
|
||||
end
|
||||
|
||||
private
|
||||
|
|
|
@ -23,8 +23,8 @@ RSpec.describe ConversationMailer, type: :mailer do
|
|||
expect(mail.to).to eq([message&.conversation&.contact&.email])
|
||||
end
|
||||
|
||||
it 'renders the sender email' do
|
||||
expect(mail.from).to eq([message&.conversation&.assignee&.email])
|
||||
it 'renders the reply to email' do
|
||||
expect(mail.reply_to).to eq([message&.conversation&.assignee&.email])
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue