PHP Classes
Icontem

Class: Newsletter Queue


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of solomongaby  >  Newsletter Queue  >  Download  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Newsletter Queue Support forum
Base name: newsletter
Description: Queue newsletters in MySQL for delivering later
Related top rated classes:
Version: 0.9
Required PHP version: 4.0
License: GNU General Public License (GPL)
All time users: 1705 users
All time rank: 1595
Week users: 18 users
Week rank: 349
 
  Author   Group folder image Groups   Detailed description  
  Rate classes User ratings   Dependencies   Trackback   Applications   Related links   Files Files  

Author

Picture of solomongaby
Name: solomongaby is available for providing paid consulting. Contact solomongaby .
Published packages: 10 Browse this author's classes Browse this author's classes
Country: Romania Romania - PHP jobs in Romania
Home page: http://www.gsdesign.ro/blog/
Age: 25
All time rank: 275
Week rank: 83

Innovation Award

PHP Programming Innovation award nominee
January 2008
Number 2
Many sites need to send newsletters to their subscribers.

When the newsletters have many subscribers, it may not be possible to send the messages to all users within the PHP script execution limit. In shared hosting it may also not be possible to increase that limit.

This class implements an alternative solution that consists in storing the newsletter messages and the subscriber e-mail addresses in a MySQL database table.

This way, a PHP script started periodically, for instance by a task scheduler like cron, can take care of the delivery. It sends small batches of newsletter messages, so it does not exceed the PHP execution time limit.

Manuel Lemos

Groups

Group folder image Email Email sending and receiving View top rated classes

Detailed description

This class can be used to queue newsletters in a MySQL database for delivering later.

It can add newsletter messages to a queue that is actually a table in a MySQL database. It stores the message sender, recipient, subject and the body text.

A separate process, eventually started by a task scheduler program like cron, calls the class queries the queue database table to retrieve the details of the messages pending to be delivered.

When a pending message is delivered, the respective database record is removed.

Each run of the delivery process only execute for a limited period of time.

User ratings

Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Good (91.7%)
Good (91.7%)
Not sure (50.0%)
Sufficient (66.7%)
-
-
Sufficient (66.7%)
303
Month:
Not yet rated by the users

Packages needed by this class

Class Dependency Why it is needed
PHPMailer
Required
used to send e-mails
MySQL-class
Required
conect to mysql DB

Trackback links

Link Description
Blog Summary Email? This definitely falls into the category of a 'hack' - so take it with a grain of salt. I thought others my benefit from the approach as a temporary solution...
Newsletter Queue mit PHP Wer massenweise Newsletter versendet, und ich meine wirklich massenweise: Wenn mehrere tausend Mails der Regelfall sind, ist es der Web- und Mailserver-Performance zuträglich, wenn man eine Queue verwendet...
Programarea orientata pe obiecte Acesta este prim-ul tutorial video, in care vorbesc despre programarea orientata pe obiecte, in acest tutorial incerc sa arat, doar o metoda de baza in POP(Programarea Orientata pe Obiecte), am folosit deasemenea o clasa de mysql,pentru a arata procedura in POP, in tutorialele urmatoare, vom patrunde mai adanc in continut-ul clasei de Mysql, si deasemenea a POP...

Applications that use this class

No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.

Related links

Link Description
Class Home Page Blog entry about this class on author page

Files

File Role Description
Plain text file addMail.php Example example adding a mail in the queue
Plain text file class.newsletter.php Class main class file
Plain text file info.txt Doc. description file
Plain text file newsletter_queue.sql Data sql create table for queue
Plain text file php4_compatibility.txt Doc. php4 compatibility addon
Plain text file queue.php Appl. file trigered by cron
Download all files: newsletter.tar.gz newsletter.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products