Xataface Email Module 0.3
Email/Mailmerge Module for Xataface
actions/email_install.php
Go to the documentation of this file.
00001 <?php
00002 class actions_email_install {
00003         function handle(&$params){
00004         
00005                 $cronpath = DATAFACE_PATH.'/modules/Email/cron.php';
00006                 $indexpath = DATAFACE_SITE_PATH.'/'.basename(DATAFACE_SITE_HREF);
00007                 $indexurl = df_absolute_url(DATAFACE_SITE_HREF);
00008                 header('Content-type: text/plain');
00009                 echo <<<END
00010 Please add the following line to your crontab file so that emails will be sent out properly:
00011 
00012 * * * * * /usr/bin/php $cronpath $indexpath $indexurl mail
00013 
00014 Note that the /usr/bin/php portion should reflect the correct path to your php cli interpreter. 
00015 Yours may be different.
00016 END;
00017 
00018 
00019         }
00020 }
 All Data Structures Files Functions Variables Enumerations