File "mail07.php"

Full Path: /home/analogde/www/Bookmarks/CHESS_ON/mail07.php
File size: 1.22 KB
MIME-type: text/x-php
Charset: 8 bit

<?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>Accs 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 paramtres 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);


?>