Skip to content

Instantly share code, notes, and snippets.

@chrisjangl
Last active April 21, 2021 18:01
Show Gist options
  • Save chrisjangl/5c1f078253a64c43edd47ce47e88ed3e to your computer and use it in GitHub Desktop.
Save chrisjangl/5c1f078253a64c43edd47ce47e88ed3e to your computer and use it in GitHub Desktop.
Template for Ninja Forms email notification, with HTML formatting.
<h2>Contact Info</h2>
<div style="margin-bottom: 10px;"><br>
<p>
Name: <b>{field:name}</b><br>
Email: <b><a href="mailto:{field:email}">{field:email}</a></b><br>
Phone: <b><a href="tel:{field:phone}">{field:phone}</a></b><br>
</p>
</div>
<hr>
<h2>Message</h2>
<div style="margin-bottom: 10px;">
<p>
Here's their message:<br>
<b>{field:message}</b>
</p>
</div>
<hr>
<h4>Submission Info</h4>
<div style="font-size: 0.8em; margin-bottom: 10px;">
<p>
This email was sent from the <form_name> on the <a href="{wp:post_url}">{wp:post_title}</a> page of {wp:site_title}.<br>
Submitted on <b>{other:date}</b> at <b>{other:time}</b>.
</p>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment