Difference between revisions of "Nats common mailer examples"

From TMM Wiki
Jump to navigationJump to search
Line 3: Line 3:
 
}}
 
}}
  
This page is here to give you a list of common mailers that are done through NATS.
+
This page is here to give you a list of common mailers that are done through NATS4.
  
'''NOTE: Even when copying these examples you should ALWAYS run test e-mails to make sure your e-mail will be sent out properly.'''
+
'''NOTE: Even when copying these examples you should ALWAYS run test e-mails to make sure your e-mail is sent out properly.'''
  
 
__TOC__
 
__TOC__
Line 16: Line 16:
 
[[list_programs]]<br />
 
[[list_programs]]<br />
  
===Example Code===
+
===Code Example===
 
<pre>
 
<pre>
 
{list_sites}
 
{list_sites}

Revision as of 14:26, 14 October 2009

NATS 4
Members Admin
The Members Admin
View Member Details
Add Member
MySQL Auth
Mod Authn DB
Multisite Access
Member Logging
Member Password Retrieval
OpenID Connect
Mod Auth OpenIDC
ID Numbers
Mailing Admin
The Mailing Admin
Create New Mailer
Email Configuration
The Mailing Queue
Mailer Template Variables
Mass Mailing Template Variables
Common Mailer Examples
Setting Rules

This page is here to give you a list of common mailers that are done through NATS4.

NOTE: Even when copying these examples you should ALWAYS run test e-mails to make sure your e-mail is sent out properly.

Latest FHG

Template Functions Used

Nats_encode
Nats_display_adtools
list_sites
list_programs

Code Example

{list_sites}
{list_programs}
<b>5 Latest FHG for {$sites[1]}:</b>
{display_adtools data_only=1 order="published_date DESC" count=5 category=2 typeid=2 siteid=1}

{foreach from=$programs key=program_id item=program_name}
     <br /><br />	Program: <b>{$program_name}</b>:
     {foreach from=$adtools key=adtool_id item=adtool_data}
          {nats_encode programid=$programid siteid=1 userid=$toid adtoolid=$adtool_id url=1 gallery_url=$adtool_data.url}<br />
	  <a href="{$encoded}">{$adtool_data.name}</a><br />
	  <b>{$adtool_data.description}</b>
     {/foreach}
{/foreach}