SunMailer first generates the newsletter as XML before using XSL to convert it to HTML or text. In the process of building the XML, SunMailer provides several hooks for developers to add additional content: Here is a summary of the arguments for the alter hooks: You can look at the code for SunMailerContentBuilder class to get more information on the process of building the newsletter as XML.