Difference between revisions of "Nats common mailer examples"

From TMM Wiki
Jump to navigationJump to search
(Created page with '{{NATS4 Manual | show_mailing_admin_section = true }} This page is here to give you a list of common mailers that are done through NATS. ''NOTE: Even when copying these example…')
 
Line 5: Line 5:
 
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 NATS.
  
''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 will be sent out properly.'''
  
 
__TOC__
 
__TOC__

Revision as of 15:14, 26 September 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 NATS.

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

Latest FHG

Template Functions Used

Nats_encode
Nats_display_adtools
list_sites
list_programs

Example Code

{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}