<mail:subject>
	{{ phrase('direct_message_join_email_subject', {
		'username': $sender.username,
		'title': $conversation.title
	}) }}
</mail:subject>

{{ phrase('direct_message_join_email_html', {
	'receiver': $receiver.username,
	'sender': $sender.username,
	'board': '<a href="' . link('canonical:index') . '">' . $xf.options.boardTitle . '</a>'
}) }}

<h2><a href="{{ link('canonical:direct-messages/unread', $conversation) }}">{$conversation.title}</a></h2>

<xf:if is="$xf.options.emailConversationIncludeMessage">
	<div class="message">{{ bb_code_type('emailHtml', $message.message, 'conversation_message', $message) }}</div>
</xf:if>

<table cellpadding="10" cellspacing="0" border="0" width="100%" class="linkBar">
<tr>
	<td>
		<a href="{{ link('canonical:direct-messages', $conversation) }}" class="button">{{ phrase('view_this_direct_message') }}</a>
	</td>
	<td align="{{ $xf.isRtl ? 'left' : 'right' }}">
		<a href="{{ link('canonical:direct-message') }}" class="buttonFake">{{ phrase('view_all_your_direct_messages') }}</a>
	</td>
</tr>
</table>

<xf:macro id="conversation_macros::footer" arg-conversation="{$conversation}" />