diff --git a/bienvenue.php b/bienvenue.php index 5addcc8..758bdf5 100644 --- a/bienvenue.php +++ b/bienvenue.php @@ -19,7 +19,7 @@ Envoie un courriel de bienvenue à l'adhérent"; } if ( !empty($opt["id"]) ) { - require_once("entete_mail.php"); + require("entete_mail.php"); require_once("db.class.php"); require_once("log.php"); $db = new db( "dolibarr" ); @@ -34,7 +34,7 @@ if ( !empty($opt["id"]) ) send_mail( "", $adherent["email"], $courriel_bienvenue ); }else { - echo "La commande nécéssite un argument --id non nul.\n"; + echo "La commande nécessite un argument --id non nul.\n"; } diff --git a/include/entete_mail.php b/include/entete_mail.php index a828583..ee25e6a 100644 --- a/include/entete_mail.php +++ b/include/entete_mail.php @@ -4,5 +4,4 @@ $headers .= "MIME-Version: 1.0\n"; $headers .= "Content-type: text/plain; charset=UTF-8\n"; $headers .= "DATE: " . date( 'r' ) . "\n"; - echo "##########$headers-----------"; ?> diff --git a/include/send_mail.php b/include/send_mail.php index 974df5a..7b4b878 100644 --- a/include/send_mail.php +++ b/include/send_mail.php @@ -4,7 +4,7 @@ function send_mail( $cat_dest, $destinataire, $texte='' ) { global $base_url; - require_once("entete_mail.php");echo "##########$headers-----------"; + require("entete_mail.php"); require_once("db.class.php"); @@ -57,7 +57,6 @@ function send_mail( $cat_dest, $destinataire, $texte='' ) } }else { - echo "##########$headers-----------"; envoi_mail( $destinataire, "[Lalis] prochains ateliers", $mail, $headers ); } }