Feature: Conversation creation email notifications (#576)
* Clean up the mailers * Disable assignment mailer if setting is turned off * Email notifications on conversation create * Specs
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
<p>Hi <%= @agent.name %>,</p>
|
||||
|
||||
<p>Time to save the world. A new conversation has been assigned to you</p>
|
||||
|
||||
<p>Click <%= link_to 'here', app_conversation_url(id: @conversation.display_id) %> to get cracking. </p>
|
||||
@@ -0,0 +1,5 @@
|
||||
<p>Hi <%= @agent.name %>,</p>
|
||||
|
||||
<p>Time to save the world. A new conversation has been created in <%= @conversation.inbox.name %></p>
|
||||
|
||||
<p>Click <%= link_to 'here', app_conversation_url(id: @conversation.display_id) %> to get cracking. </p>
|
||||
@@ -0,0 +1,14 @@
|
||||
<p>Hi <%= @contact.name %>,</p>
|
||||
|
||||
<p>You have new messages on your conversation.</p>
|
||||
|
||||
<table>
|
||||
<% @messages.each do |message| %>
|
||||
<tr>
|
||||
<td>
|
||||
<b><%= message.incoming? ? 'You' : message.user.name %></b>
|
||||
</td>
|
||||
<td>: <%= message.content %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
Reference in New Issue
Block a user