hi cp
while one would be better/safe as using htmlspecialchars for email content between the 2 codes below
PHP Code:
$body="
<html>
<head></head>
<body>
<table>
<tr>
<td>Hi ". htmlspecialchars($name).",<br>
<br>
City = " . htmlspecialchars($city). "<br>
Thanks<br>
</td>
</tr>
</table>
</body>
</html>";
mail($to,$subject,$body,$headers)
PHP Code:
$body="
<html>
<head></head>
<body>
<table>
<tr>
<td>Hi ". $name.",<br>
<br>
City = " .$city. "<br>
Thanks<br>
</td>
</tr>
</table>
</body>
</html>";
mail(htmlspecialchars($to),$subject,htmlspecialchars($body),$headers)
vineet
Bookmarks