Moobiz

Email Marketing

All the answers you need to get broadcasting emails

How do I start creating a broadcast email?

Emails sent by Broadcast are created using standard XSL:

  1. Rename yourfile.htm to email.xsl
  2. Using the example below, copy and paste the appropriate lines at the start and end of your HTML file
    <?xml version="1.0" encoding="utf-8"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="xml" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
    doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml-strict.dtd" encoding="utf-8" indent="no" />
    <xsl:template match="/">
    <html>
    
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Subject of email</title>
    </head>
    
    <body>
    
    <p>Hello!</p>
    
    </body>
    
    </html>
    </xsl:template>
    </xsl:stylesheet>
    
  3. Note: don't include a DOCTYPE tag, instead make sure the output matches your original DOCTYPE of either XHTML 1.0 Strict or Transitional
  4. Create a sample XML file in the same folder, using the example below
    <?xml version="1.0" encoding="utf-8"?>
    <?xml-stylesheet type="text/xsl" href="email.xsl"?>
    <message>
    <firstName>Test</firstName>
    <lastName>Tester</lastName>
    <email>test@your-domain.com</email>
    <unsubscribeURL>http://test.moocast.net/unsubscribe.php?1-2-3-Auto-Generated</unsubscribeURL>
    <viewURL>http://test.moocast.net/view.php?1-2-3-Auto-Generated</viewURL>
    </message>
    
  5. Test your file is valid - open the XSL file in Safari or Internet Explorer and fix any errors it tells you about (there is also an online XSL validator at http://www.validome.org/xml/validate/ - tick Well-Formedness only)
  6. Test your file looks ok - open the XML file in Safari or Internet Explorer and check it still displays ok after any changes you've made (and any personalisation is as you expected it to look)

Note: we recommend leaving indent="no" as testing has found the white space it introduces in the HTML when yes causes display errors in older browsers