<?php
$to
=
"simon@mailexample.com, elaine@mailexample.com"
;
$subject
=
"This is a test"
;
$message
= "
<html>
<head>
<title>This is a test</title>
</head>
<body>
<p>Dear all,</p>
<p>This is a test
for
HTML mail sending.</p>
</body>
</html>
";
$header
=
"MIME-Version: 1.0/r/n"
;
$header
.=
"Content-type: text/html; charset=iso-8859-1/r/n"
;
$header
.=
"To: Simon <simon@mailexample.com>, Elaine <elaine@mailexample.com>/r/n"
;
$header
.=
"From: PHP Tester <phptester@163.com>/r/n"
;
$header
.=
"Cc: Peter@mailexample.com/r/n"
;
$header
.=
"Bcc: David@mailexample.com/r/n"
;
echo
$header
;
mail(
$to
,
$subject
,
$message
,
$header
);
?>