Code: Select all
<?php
$to = 'my-client@hismail.com' . ', '; // note the comma
// subject
$subject = "Hello client!";
// message
$message = "I need the .php page here!";
// 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 .= 'From: My Company <accounts@mysite.com>' . "\r\n";
$headers .= 'Cc: my-boss@mysite.com' . "\r\n";
// Mail it
mail($to, $subject, $message, $headers);
?>