Chatwoot/app/views/mailers/conversation_reply_mailer/conversation_transcript.html.erb
Sojan Jose 22880df429
Feature: Send chat transcript via email (#1152)
Co-authored-by: Pranav Raj Sreepuram <pranavrajs@gmail.com>
2020-08-17 11:25:13 +05:30

20 lines
543 B
Text

<% @messages.each do |message| %>
<tr>
<td>
<b><%= message.sender&.try(:available_name) || message.sender&.name || '' %></b>
</td>
</tr>
<tr>
<td style="padding-bottom: 16px;">
<% if message.content %>
<%= message.content %>
<% end %>
<% if message.attachments %>
<% message.attachments.each do |attachment| %>
Attachment [<a href="<%= attachment.file_url %>" _target="blank">Click here to view</a>]
<% end %>
<% end %>
<br />
</td>
</tr>
<% end %>