send_registration_email.naml
<override_macro name="send_registration_email" parameters="email, next_url, key" unindent="true">
<n.set_var. name='confirm_url'>
<n.remove_spaces.>
<n.base_url/>
<n.encode_url.>
/template/NamlServlet.jtp?macro=finish_registration_page
&email=<n.email/>
&key=<n.key/>
&date=<n.now.raw_time/>
</n.encode_url.>
</n.remove_spaces.>
</n.set_var.>
<n.new_email.>
<n.send>
<to><n.email/></to>
<subject><t><t.app.root_node.subject/> Registration</t></subject>
<text_part>
<t>Dear user,</t>
<t>Thank you for registering for the <t.app.root_node.subject/> forum.</t>
*<t>Email confirmation</t>*
<t>Before clicking on the confirmation link below to activate your account, please read the <a href="https://www.thstofficial.com/forumrules.html">forum rules</a>.</t>
<n.var name='confirm_url'/>
<t>If you didn't request this email or have no idea why you received it, please ignore it.</t>
<t>Sincerely,</t>
<n.root_node.subject/>
<n.base_url/>
</text_part>
<aol_part>
<t>Dear user,</t>
<t>Thank you for registering for the <t.app.root_node.subject/> forum.</t>
*<t>Email Confirmation</t>*
<t>Before clicking on the confirmation link below to activate your account, please read the <a href="https://www.thstofficial.com/forumrules.html">forum rules</a>.</t>
<n.var name='confirm_url'/>
<t>If you didn't request this email or have no idea why you received it, please ignore it. </t>
<t>Sincerely,</t>
<n.root_node.subject/>
<n.base_url/>
</aol_part>
<html_part>
<t>Dear user,</t><br/>
<br/>
<t>Thank you for registering for the <t.app.root_node.subject/> forum.</t>
<br/>
<div style="font-weight:bold;margin-bottom:.25em">
<t>Email Confirmation</t>
</div>
<t>Before clicking on the confirmation link below to activate your account, please read the <a href="#">forum rules</a>.</t>
<div style="background-color:#FFFADB;border:#EDDD79 solid 1px;margin:1.2em 0;padding:.5em">
<a href="[n.var name='confirm_url'/]"><n.var name='confirm_url'/></a>
</div>
<div style="margin:.3em 0 1.2em">
<t>If you didn't request this email or have no idea why you received it, please ignore it.
</t>
</div>
<t>Sincerely,</t><br/>
<n.root_node.subject/><br/>
<a href="[n.base_url/]"><n.base_url/></a>
<div style="margin:1.5em 0;color:#666666;font: 11px tahoma,geneva,helvetica,arial,sans-serif;">
<n.macro_viewer_email_link macro="send_registration_email"/>
</div>
</html_part>
</n.send>
</n.new_email.>
</override_macro>