File "mail06.php"

Full Path: /home/analogde/www/Freebox/CHESS_ON/mail06.php
File size: 652 bytes
MIME-type: text/x-php
Charset: utf-8

<?php
$to = "patrice.delpy@neuf.fr";
$subject = "HTML email";

$prenom = "patrice";

$message = "
<html>
<head>
<title>HTML email</title>
</head>
<body>
<p>This email contains HTML Tags $prenom et dfsf ffe!</p>
<table>
<tr>
<th>Firstname</th>
<th>Lastname</th>
</tr>
<tr>
<td>John</td>
<td>Doe</td>
</tr>
</table>
</body>
</html>
";

// Always set content-type when sending HTML email
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";

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

mail($to,$subject,$message,$headers);
?>