<?php
// multiple recipients
$to = ‘text@examples.com'
// subject
$subject = 'HTML email';
// message
$message = '
<html>
<head>
<title>HTML EMAIL</title>
</head>
<body>
<p>Sample of HTML EMAIL!</p>
</body>
</html>
';
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Additional headers
$headers .= 'To: Joe <joes@examples.com>, Kelly <kellys@examplescom>' . "\r\n";
$headers .= 'From: HTML EMAIL <samples@examples.com>' . "\r\n";
$headers .= 'Cc: samples@examplescom' . "\r\n";
// Mail it
mail($to, $subject, $message, $headers);
?>