WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

eTemplates

Create simple, yet powerful dynamic email templates that are commonly used in application style websites. For developers / advanced users ONLY.

How do I send out an email using eTemplates?

In your code use the following snippet and replace the following variables with appropriate values:

<?php
$emailtags = array('magictag1' => 'value1', 'magictag2' => 'value2', 'magictag3' => 'value3');
nlws_et($templateID, $to, $emailtags);
?>

What are magic tags?

Magic tags are used in an eTemplate to populate the email with dynamic data. They are used in the following format:

{@MAGICTAG}

When magic tags are found in an email template, they are replaced with the values that are defined in the array.

Okay. So give me an example!

This is where everything comes together an makes sense.

Sample HTML code would look something like this:

<div style="width: 800px; margin: 0 auto; padding: 40px;">
    <p>Hello {@USERNAME}!  You are currently a(an) {@USERROLE} of the site.</p>
</div>

Sample PHP code would look something like this:

<?php
$emailtags = array('USERNAME' => 'John Doe', 'USERROLE' => 'subscriber');
nlws_et(2, 'johndoe@email.com', $emailtags);
?>

Requires: 3.2 or higher
Compatible up to: 3.4.2
Last Updated: 2012-3-19
Downloads: 850

Ratings

5 stars
5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.