Chatwoot/app/mailers/assignment_mailer.rb
Pranav Raj Sreepuram 2a34255e0b Initial Commit
Co-authored-by: Subin <subinthattaparambil@gmail.com>
Co-authored-by: Manoj <manojmj92@gmail.com>
Co-authored-by: Nithin <webofnithin@gmail.com>
2019-08-14 15:18:44 +05:30

10 lines
348 B
Ruby

class AssignmentMailer < ApplicationMailer
default from: 'accounts@chatwoot.com'
layout 'mailer'
def conversation_assigned(conversation, agent)
@agent = agent
@conversation = conversation
mail(to: @agent.email, subject: "#{@agent.name}, A new conversation [ID - #{@conversation.display_id}] has been assigned to you.")
end
end