Sending a HTML mail by Php
Here is code below to send a HTML mail in Php
// multiple recipients
$to = ’shandfg@rediffmail.com’;
// subject
$subject = ‘Signature link from DP’;
// message
$message = ‘
<html>
<head>
<title>Signature link from DP</title>
</head>
<body>
<p>A new thread for Signature link has been started</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: shangce3@rediffmail.com’ . “\r\n”;
$headers .= ‘From: Abdul Kalam<apj@abdulkalam.com>’ . “\r\n”;
//$headers .= ‘Cc: birthdayarchive@example.com’ . “\r\n”;
//$headers .= ‘Bcc: birthdaycheck@example.com’ . “\r\n”;
// Mail it
mail($to, $subject, $message, $headers);