Coder Social home page Coder Social logo

emailtemplate's Introduction

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.

emailtemplate's People

Contributors

madhavi-webonise avatar

Watchers

Nishant Shrivastava avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.