Skip to content

This is a email template management plugin for cakephp 2.x version

Notifications You must be signed in to change notification settings

madhavi-webonise/EmailTemplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Background:

This is a very simple dynamic email template management plugin for CakePHP

Overall functionality is inspired by email content management in code or in cakephp view. This plugin is will help to change email content in admin

The Plugin is an attempt to provide a basic, simple to use method to add new email templates as per requirement dy developer and change the email content by admin or super user for the application as they want. while integrating nicely into CakePHP.

Why use this plugin? When I was working on my one project there is continues requirement to change email content. for that every time I need to do change in code or in my email view. To make this process easy I wrote this plugin through which we can provide email content editing facility to admin using some constants which we can replace in code with there dynamic values.

While you can create email templates using this plugin and integrate it in code. and give facility to site admin to edit or view the email templates so they can edit content as per requirement.

Minimal requirement :

Its required migration plugin in place to create required database table.

How to use

  1. Download (https://github.com/madhavi-webonise/emailtemplate/downloads ) or clone (https://github.com/madhavi-webonise/emailtemplate ) the code for this plugin .

  2. Add the email_template folder into your "your-app-path/app/plugins" folder.

  3. Run the following command in the cake console to create the tables: @Console/cake Migrations.migration -plugin email_template.

  4. Now check the email templates list in your application.

  5. You can add more email templates from "your-app-url/emailtemplate/emailtemplates/add".

  6. you can check Constants list which you can use into email content to replace by real value by clicking "Email Constants" link from add or edit page.

  7. you can add more constants in "$emailconstants" array from EmailTemplateAppController with blank value. If we didn't provide for any constant in code then it will replace with black and it will not show direct constant in email.

  8. You can add same constant in "EmailTemplateController" with there one or two lines description Where and why we can use that constant.

  9. Now In code where you have to use the email template fetch it from database by there slug name and Replace the constants with there valid values to how to do this check "getEmailTemplateAndReplaceConstant" action from "EmailTemplateController".

  10. Send the email using email templates.

About

This is a email template management plugin for cakephp 2.x version

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published