Chargement... Veuillez patientez...

Bienvenue sur le site de !

(site non professionnel !)

Flash Infos !!

PI | FYI

Site Non Professionel !Wink

Total Users

2967 enregistrés
0 Aujourd hui
2 Cette semaine
208 Ce mois-ci
Dernier: PinupduzK

Menu principal

Accueil
News
Me contacter
- - - - - - -
Piano
Mon Joomla
Liens
- - - - - - -

Autre menu

Site Map

Boîte à Meuh !

feed image
feed image
Google

Accueil arrow News arrow Webmasters arrow php - test fonction mail

php - test fonction mail

Convertir en PDF Version imprimable Suggérer par mail
<?php

   // Test fonction mail();

   // *** A configurer

   $to    = "Adresse_Mail_Destinataire"; 
   $from  = "Adresse_Mail_Contact_site"; 

   // *** Laisser tel quel

   $JOUR  = date("Y-m-d");
   $HEURE = date("H:i");

   $Subject = "Test Mail - $JOUR $HEURE";

   $mail_Data = "";
   $mail_Data .= "<html> \n";
   $mail_Data .= "<head> \n";
   $mail_Data .= "<title> Subject </title> \n";
   $mail_Data .= "</head> \n";
   $mail_Data .= "<body> \n";

   $mail_Data .= "Mail HTML simple  : <font color=red> <b>$Subject </b> </font>  <br> \n";
   $mail_Data .= "</body> \n";
   $mail_Data .= "</HTML> \n";

   $headers  = "MIME-Version: 1.0 \n";
   $headers .= "Content-type: text/html; charset=iso-8859-1 \n";
   $headers .= "From: $from  \n";
   $headers .= "Disposition-Notification-To: $from  \n";

   // Message de Priorité haute
   // -------------------------
   $headers .= "X-Priority: 1  \n";
   $headers .= "X-MSMail-Priority: High \n";

   $CR_Mail = TRUE;

   $CR_Mail = @mail ($to, $Subject, $mail_Data, $headers);
 
   if ($CR_Mail === FALSE)   echo " ### CR_Mail=$CR_Mail - Erreur envoi mail <br> \n";
   else                      echo " *** CR_Mail=$CR_Mail - Mail envoyé<br> \n";

?>
Commentaires
Rechercher
Seul les utilisateurs enregistrés peuvent écrire un commentaire!

3.23 Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

 
< Précédent   Suivant >

Se connecter






 
© 2024 Partitions piano, astuces Joomla sur le blog de Jb Burin
Joomla! est un logiciel libre distribué sous licence GNU/GPL.