This script defines who gives whom gifts for the holiday’s and automatically sends e-mail notifications.
- PHP 5.3.0 or higher
- PECL json 1.2.0 or higher
- Add people in the file input.php, it will require the name and email.
<?php
return array(
array(
'name' => 'Name 1',
'email' => '[email protected]'
),
...
);
?>
- Change the config variables in the index.php file.
mailStack
- Stack of messagesmailSleep
- Delay before sending next stack of messagesmailFrom
- Email default sendermailSubject
- Subject of the messagemailMessage
- Message, using variable #WHO# to substitute the name of the email recipient and variable #WHOM# to specify the name of the gift recipient
- Run the script index.php from the console or through a web server.
In operation, the script stores the data in a temporary file output.php. In case of a restart the script will continue the newsletter.
If you specify one person in the file input.php, then he and only he receives a letter.
Copyright (c) 2013 NIMAX. Programmed by Vladimir Parshukov. Released under the GNU Public License.