<?php

	$to = "patrice.delpy@neuf.fr";

	$prenom = "patrice";
	$login = "coco";
	$password = "rintintin";

	$jour  = date("d-m-Y");
	$heure = date("H:i");
	$sujet = "Envoi de vos identifiants:";
	$serveur = $_SERVER["SERVER_NAME"];
	
	
	//Using CSS in HTML Emails

	$message = "";
						
						$message = "
						<html>
						<head>
						<title>Accés compte:</title>
						<style type='text/css'>
						h1{
						color:red;
						}
						</style>
						</head>
						<body>
						<p>Envoyé le $jour à $heure</p> 
						<h1>Salut $prenom.</h1>
						<p>Suite à ta demande, voici les paramétres de connexion à notre site:</p> 
						<p>http://$serveur </p>
						Login :<strong>$login</strong> & password : <strong>$password</strong> .
						<p>Le webmaster.</p> 
						
						<!-- 
						<table>
						<tr>
						<th>Firstname</th>
						<th>Lastname</th>
						</tr>
						<tr>
						<td>John</td>
						<td>Doe</td>
						</tr>
						</table>
						-->
						</body>
						</html>
						";

	$headers = "MIME-Version: 1.0" . "\r\n";
	$headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";

	$headers .= 'From: <webmaster@example.com>' . "\r\n";
	$headers .= 'Cc: myboss@example.com' . "\r\n";

	mail($to,$sujet,$message,$headers);


?>