#!/usr/bin/php -q . # See the README and LICENSE files for details global $g_bypass_headers; $g_bypass_headers = 1; require_once( dirname( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'core.php' ); require_once( 'email_api.php' ); # Make sure this script doesn't run via the webserver if( php_sapi_name() != 'cli' ) { echo "send_emails.php is not allowed to run through the webserver.\n"; exit( 1 ); } echo "Sending emails...\n"; email_send_all(); echo "Done.\n"; exit( 0 );