You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Introduction

This process tool plugin sends an email message to the targeted recipient(s), with the ability to use a common body template via hash variable.

You can use $(body) in the Message Body Template to display the content within the Message field.

With that, you can use Environment Hash Variable to create a template with $(body) to display the content within the Message. 

Create a new environment variable (i.e. template) and place the following sample code inside.

Environment Variable - template
<table role="presentation" align="center" border="0" cellspacing="0" cellpadding="0" width="100%" bgcolor="#F3F2EF" style="background-color: rgb(243, 242, 239); table-layout: fixed; padding-bottom:30px"> 
   <tbody> 
    <tr> 
        <td align="center" style="padding-top: 24px;"> 
             <center style="width: 100%;"> 
             <table role="presentation" border="0" cellspacing="0" cellpadding="0" width="512" bgcolor="#FFFFFF" style="background-color: rgb(255, 255, 255); margin: 0px auto; max-width: 512px; width: inherit;">
                     <tbody> 
                         <tr> 
                             <td bgcolor="#FFFFFF" style="background-color: rgb(255, 255, 255); padding: 18px 24px 0px;"> 
                                 <table role="presentation" border="0" cellspacing="0" cellpadding="0" width="100%" style="width: 100%; min-width: 100%;"> 
                                     <tbody> <tr> <td align="center" valign="middle">
                                     <h2 style="margin:0;color:#000000;font-weight:600;font-size:24px;line-height:1.167">Claim App</h2>
                                     </td></tr></tbody>
                                 </table>
                             </td>
                         </tr>
                     </tbody>
             </table>
             </center>
         </td>
     </tr>
     <tr> 
        <td align="center"> 
             <center style="width: 100%;"> 
             <table role="presentation" border="0" cellspacing="0" cellpadding="0" width="512" bgcolor="#FFFFFF" style="background-color: rgb(255, 255, 255); margin: 0px auto; max-width: 512px; width: inherit;">
                     <tbody> 
                         <tr> 
                             <td bgcolor="#FFFFFF" style="background-color: rgb(255, 255, 255); padding: 18px 24px 28px;"> 
                                 <table role="presentation" border="0" cellspacing="0" cellpadding="0" width="100%" style="width: 100%; min-width: 100%;"> 
                                     <tbody> <tr> <td align="left" valign="middle">
                                        $(body)
                                        <br/>
                                        <br/>Thanks.
                                     </td></tr></tbody>
                                 </table>
                             </td>
                         </tr>
                     </tbody>
             </table>
             </center>
         </td>
     </tr>
    </tbody>
</table>

Then, in "Message Body Template", key in the following.

Message Body Template
#envVariable.template#

With this plugin, we can now modify the template without the need to modify each and every email tool.

JOGET OSS

The plugin is available open-source at jogetoss/email-tool-with-template.





  • No labels