<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="20" style="line-height:0;font-size:0;">
   <tr>
      <td width="100%" height="100%" align="center" valign="middle" bgcolor="#f2f2f2">
         <table width="600" border="0" cellspacing="0" cellpadding="1">
            <tr>
               <td align="left" valign="top" bgcolor="#d2f4dc" style="background:#d2f4dc;">
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                     <tr>
                        <td align="left" valign="top">
                           <table width="100%" border="0" cellspacing="5" cellpadding="10">
                              <tr>
                                 <td align="left" valign="top">{if $commonCompanyLogo}<img src="{$commonCompanyLogo}" alt="logo"/>{else}{$commonSiteName}{/if}</td>
                                 <td align="right" valign="middle">
                                    {if $settingsFacebookPage}<a href="http://www.facebook.com/{$settingsFacebookPage}"><img style="padding-right:10px;" src="{$view_host}/public/uploads/emailer/emailer-fb.png"  alt="facebook" border="0"/></a>{/if}
                                    {if $settingsTwitterPage}<a href="http://twitter.com/{$settingsTwitterPage}"><img src="{$view_host}/public/uploads/emailer/emiler-tw.png"  alt="Twitter" border="0"/></a>{/if}
                                 </td>
                              </tr>
                           </table>
                        </td>
                     </tr>
                     <tr>
                        <td align="left" valign="top" bgcolor="#FFFFFF">
                           <table width="100%" border="0" cellspacing="0" cellpadding="40">
                              <tr>
                                 <td align="left" valign="top" style="font:normal 13px/18px Tahoma, Geneva, sans-serif;color:#333 "> {$emailbody}</td>
                              </tr>
                           </table>
                        </td>
                     </tr>
                     <tr>
                        <td height="1" bgcolor="#cccccc"></td>
                     </tr>
                     <tr>
                        <td align="center" valign="middle" bgcolor="#FFFFFF">
                           <table width="100%" border="0" cellspacing="20" cellpadding="0">
                              <tr>
                                 <td align="center" valign="middle" style="font:normal 13px/18px Tahoma, Geneva, sans-serif;color:#878381 ">
                                    {$emailBottom}
                                 </td>
                              </tr>
                           </table>
                        </td>
                     </tr>
                  </table>
               </td>
            </tr>
         </table>
      </td>
   </tr>
</table>