Customize_Emails_V1

Customizing Email Templates

In a microsite, you can customize email templates, to implement customized messages and formatting. There are two levels of customizations possible to change the formatting of emails.

1. Changing the header and footer of html text in the emails

Goto SiteAdmin->Placements and edit EMAIL_HEADER or EMAIL_FOOTER placement. 

 

The default content for these placements is given below, which you can change. All emails will use the overridden content once you populate these placements.

Header

Header content starts the html and body tag, and opens a DIV for actual content of the email (which gets generated by specific templates, as described in step 2 below)

<html>
            <head>
                <title></title>
            </head>
            <body>
            <div style="background-color:#2B4866;font: 12px/18px 'Lucida Grande','Lucida Sans Unicode',Helvetica,Arial,Verdana,sans-serif;padding:10px">
            <div id="main" style="margin:20px; background-color:#ffffff;">
                <div id="header" style="margin-bottom:20px;height:90px;border-bottom:1px solid #AAAAAA;background:#DEF2FC;">
                    <img alt="Microsite Logo" src="__LOGO_URL__" hspace="5px" align="left"/>
                    <div id="title" style="text-align:center;font-size:20px;line-height:40px;margin-left:20px">__TITLE__</div>
                </div>
                <div id="content" style="font-size:12px;padding:5px 20px;">

 

Footer

Footer ends the content, body and html tags.

</div>
                <div style="border-top:1px solid #AAAAAA;margin-top:20px; text-align:center;font-size:10px">
                    <p style="font-size:8px;">Automated email generated from a customer microsite hosted on EduBrite platform.</p>
                </div>
            </div>
            </div>
        </body>
        </html>

 

 2. Changing the Email content in templates

 Edurite platform provides several email templates which you can customize to achieve customized messaging in email content. To begin with customizing email templates,

  • go to Site Admin->Email Settings
  • On the Email Settings page you will see several tabs, first tab captures some settings related to email at the site level. Other tabs provide ability to customize specific emails which get generated by the system. You can view each tab to see the listing of specific email, and enable or disable it. You can also override the default email template by clicking on the plus icon. Once you have overridden a template, you will start seeing the Edit icon which you can click to edit the content. The email template content follows XML coding guidelines, so be carefull while you override them. If you want to get rid of any overridden template, just rename it, while editing it.

 

  • Once email template is published, changes will become effective (as long as they are in draft mode, they updates won't get picked up)
  • You can refer to Email Variables and use them in the content of email templates
  • Each template must be created as a well formed XML node, so use any external XML editor to format your code and check for well formedness
  • Each template's content
    • begins with a <template> element.
    • It then contains an optional header element (if not present, then default header or overridden header is used). So you could override header in a specific email template as well.
    • Followed by <body> element, which contains the actual content of the email. Content can have embedded variables using __VARNAME__ syntax
    • Then an optional <footer> element, (if not present, then default footer or overridden footer is used)

Example template for Reset Password emails

<template type="RESETPASSWD" subject="Reset your password at __SITE__" >
            <header>
            </header>
            <body>
                <![CDATA[Hi __FNAME__,
                <p>__SITE__ received a request to reset a password associated with this e-mail address. If you didn't request this, you can safely ignore this email.<br/><br/>
                If you requested to reset your password, click on the URL below<br/>
                <a href="__URL__" target="_blank">__URL__</a>
                </p>
                <br/>
                <br/>Regards
                <br/>Support]]>
            </body>
        </template>

3. Customizing From email address in microsite's emails

Open the Email Settings page via Site Admin->Email Settings. On the first tab, you can specify admin email id and admin email display name which would be used as sender's name in outgoing emails from the microsite. If it is not changed, then all emails go with support@edubrite.com as the sender.

 

 

Additional Resources:

Watch Video :

 

 


Rating: