forked from innovativepm/cakephp-newsletter-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathreadme.txt
42 lines (31 loc) · 1.55 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
----------------------------------
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');