Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
Bookmarks
/
CHESS_ON
:
mail02.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php // Test fonction mail(); // *** A configurer $to = "patrice.delpy@free.fr"; // adresse MAIL OVH li�e � l�h�bergement. $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 : <b>$Subject </b> <br> \n"; $mail_Data .= "<br> \n"; $mail_Data .= "bla bla <font color=red> bla </font> bla <br> \n"; $mail_Data .= "Etc.<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"; } ?>