Xataface Email Module  0.3.2
Email/Mailmerge Module for Xataface
 All Data Structures Files Functions Variables Pages
email_install.php
Go to the documentation of this file.
1 <?php
3  function handle(&$params){
4 
5  $cronpath = DATAFACE_PATH.'/modules/Email/cron.php';
6  $indexpath = DATAFACE_SITE_PATH.'/'.basename(DATAFACE_SITE_HREF);
7  $indexurl = df_absolute_url(DATAFACE_SITE_HREF);
8  header('Content-type: text/plain');
9  echo <<<END
10 Please add the following line to your crontab file so that emails will be sent out properly:
11 
12 * * * * * /usr/bin/php $cronpath $indexpath $indexurl mail
13 
14 Note that the /usr/bin/php portion should reflect the correct path to your php cli interpreter.
15 Yours may be different.
16 END;
17 
18 
19  }
20 }