Formatting e-mail HTML

Sometimes, you may wish to distinguish between an online HTML format and an e-mail HTML format for your e-mail message. For example, in an online version of your e-mail, you will want to use normal Web links and component links, rather than trackable links as described in Tracking e-mail link clicking. To make the distinction between e-mail HTML and Web HTML, Outbound E-mail provides a function: OutboundEmail.IsRenderingEmail().

If you supply the two parameters renderMode and publicationTargetID to this method, it will return true if an e-mail is being rendered.