Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A Newsletter plugin for CakePHP
Branch: master
Pull request Compare This branch is 22 commits ahead of innovativepm:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
config
controllers
models
tests
views
.gitignore
newsletter_app_controller.php
newsletter_app_helper.php
newsletter_app_model.php
readme.txt
tables.sql

readme.txt

----------------------------------
REQUIREMENTS
----------------------------------
Extend-Associations: http://bakery.cakephp.org/articles/view/add-delete-habtm-behavior
JQuery for ajax calls in admin_send.ctp

You MUST have a sendEmail() function in your Appcontroller
a demo sendEmail() function that uses SwiftMailer (http://swiftmailer.org/) can be found here http://wiki.github.com/fabiokr/cakephp-newsletter-plugin


----------------------------------
INSTALLATION & CONFIGURATION
----------------------------------
drop the plugin files in the folder app/plugins/newsletter/

create the necessary DB tables using either:
the file in app/plugins/newsletter/config/sql/schema.sql

or via shell copy app/plugins/newsletter/config/sql/newsletter.php in app/config/sql/
and run:

cake schema run create -name Newsletter


Open app/plugins/newsletter/config/newsletter.php
Define the required configuration variables

Enjoy!

----------------------------------
TODO
----------------------------------
Explain Configuration Fields
$subject = Configure::read('Newsletter.unsubscribe_subject');
$subject = Configure::read('Newsletter.subscribe_subject');
$from = Configure::read('Newsletter.from'); #Required
$from_email = Configure::read('Newsletter.from_email'); #Required

$subject = Configure::read('Newsletter.sendX'); #Number of emails to sent at each admin_send call.
$subject = Configure::read('Newsletter.sendInterval'); #the interval time before send next batch
$subject = Configure::read('Newsletter.mail_opt_out_message');
$subject = Configure::read('Newsletter.emptyImagePath');
Something went wrong with that request. Please try again.