PHP का उपयोग करके, और इस कोड के साथ मुझे एक सादा पाठ के रूप में ईमेल प्राप्त होता है, क्या मुझे कुछ याद आया? क्योंकि मुझे स्वरूपित ईमेल भेजने की आवश्यकता है जिसमें उदाहरण के लिए लिंक हो सकते हैं।PHP मेल एचटीएमएल प्रारूप काम नहीं कर रहा है
$to = "[email protected]";
$subject = "Password Recovery";
$body = '
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Birthday Reminders for August</title>
</head>
<body>
<p>Here are the birthdays upcoming in August!</p>
<table>
<tr>
<th>Person</th><th>Day</th><th>Month</th><th>Year</th>
</tr>
<tr>
<td>Joe</td><td>3rd</td><td>August</td><td>1970</td>
</tr>
<tr>
<td>Sally</td><td>17th</td><td>August</td><td>1973</td>
</tr>
</table>
</body>
</html>
';
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers = "From: [email protected]\r\n"."X-Mailer: php";
if (mail($to, $subject, $body, $headers))
echo "Password recovery instructions been sent to your email<br>";
कृपया इसे उत्तर या अपवॉट के रूप में चिह्नित करें 'यदि यह सही है'। – GLES