Detecting render mode
Depending on the type of rendering Outbound E-mail is performing, you may want to execute different code.
To execute different code depending on the rendering being performed, use the @@OutboundEmail_IsRenderingEmail@@ Dreamweaver templating method. The method returns true or false depending on whether Outbound E-mail is rendering for testing or sending a Mailing, or whether it is rendering for a preview in the user interface.
You use the @@OutboundEmail_IsRenderingEmail@@ method in optional regions in your Adobe Dreamweaver Template. Optional regions are used to display certain contents of the input package only if certain conditions hold. The following tags define an optional region:
<!-- TemplateBeginIf cond="BooleanExpression" -->
...
OutboundEmail_IsRenderingEmail
...
<!-- TemplateEndIf -->