* along with this program; if not, write to the Free Software
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*
* $Id$
* $Source$
*
*
*
* !!! Envoi mailing !!!
* !!! Envoi mailing !!!
*
*
...
@@ -39,16 +36,17 @@
...
@@ -39,16 +36,17 @@
/**
/**
\file scripts/mailing/mailing-send.php
* \file scripts/mailing/mailing-send.php
\ingroup mailing
* \ingroup mailing
\brief Script d'envoi d'un mailing pr�par� et valid�
* \brief Script d'envoi d'un mailing prepare et valide
* \version $Id$
*/
*/
// Test si mode batch
// Test if CLI mode
$sapi_type=php_sapi_name();
$sapi_type=php_sapi_name();
if(substr($sapi_type,0,3)=='cgi'){
if(substr($sapi_type,0,3)=='cgi'){
echo"Erreur: Vous utilisez l'interpreteur PHP pour le mode CGI. Pour executer mailing-send.php en ligne de commande, vous devez utiliser l'interpreteur PHP pour le mode CLI.\n";
echo"Error: You are using PH for CGI/Web. To execute ".$script_file." from command line, you must use PHP for CLI mode.\n";