Sending Html Pages
| From: | Salman Ahmed | Date: | Sun, 12 May 2002 11:25:40 +0000 |
| Subject: | Sending Html Pages | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-97211@lists.php.net to get a copy of this message | ||
Hi,
I am trying to send html pages via email, that is instead of sending plain text format to the client
I am trying to send Rich Text using mail function of PHP. At first I was sending
--------------------------
Hello Bob,
Thanks for downloading this from my site
--------------------------
BUT for Rich Text I am doing
--------------------------
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'>
<html>
<head>
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
</head>
<body>
<div align="left">
<table border="0" cellpadding="10" cellspacing="0"
width="500">
<tr>
<td>
<font face="Verdana" size="2">
Hi,
<br>
Thanks for downloading this from my site
</font>
</td>
</tr>
</body>
</html>
--------------------------
But what happens is instead of sending html page it sends as a text with all code displayed as it is
without being parsed.
Please tell what can I do to send rich text emails as the this one u are reading to the clients
using PHP mail function.
Kind Regards
Salman