Difference between revisions of "Nats common mailer examples"
From TMM Wiki
Jump to navigationJump to searchLine 3: | Line 3: | ||
}} | }} | ||
− | This page is here to give you a list of common mailers that are done through | + | 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 | + | '''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 Example=== |
<pre> | <pre> | ||
{list_sites} | {list_sites} |
Revision as of 14:26, 14 October 2009
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}