Re: Sending Html Pages
| From: | Liam MacKenzie | Date: | Sun, 12 May 2002 10:31:40 +0000 |
| Subject: | Re: Sending Html Pages | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-97212@lists.php.net to get a copy of this message | ||
If you read up about 10 messages you'll get the answer.
Also, RTFM. (Don't ask what that means, because if you read up 10 messages
you'll find out)
http://www.php.net/manual/en/function.mail.php
----- Original Message -----
From: "Salman Ahmed" <statbat@gem.net.pk>
To: <php-general@lists.php.net>
Sent: Sunday, May 12, 2002 9:25 PM
Subject: [PHP] Sending Html Pages
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