As described in the previous section, the HtmlContentProcesser
and HtmlTextConverter
allow you to send a message as both text and HTML. However, formatting results for text messages converted from HTML may be unpredictable. For situations where you need to guarantee a properly formatted message in both styles, you can configure the altTemplateURL
property in the TemplateEmailInfo
object. As the value for this property, specify a URL that points to an alternative text template for the HTML message. The text representation is generated in the same session as the HTML representation.
In addition, in the JSP or JHTML page that renders the alternative text template, set the MIME type of the response to text/plain
. For more information, see the ATG Page Developer's Guide.
Note that this feature is available only if you are creating and sending mailings programmatically; it is not available for scenario-generated mailings.