RE: [PHP] Cannot send a hyperlink
| From: | Per Jessen | Date: | Thu, 15 Nov 2007 15:09:08 +0000 |
| Subject: | RE: [PHP] Cannot send a hyperlink | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-264580@lists.php.net to get a copy of this message | ||
Brad wrote:
> Why is php refusing to parse as html?
Here your code cut down to what you need:
$headers = "From: \"".$fromname."\"
<".$fromaddress.">".$eol;
$headers .= "X-Mailer: PHP ".phpversion().$eol;
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=\"iso-8859-1\"\r\n";
$headers .= "Content-Transfer-Encoding: 8bit".$eol;
$body = "<a href=\"http://www.zoneofsuccessclub.com\">link
</a>\n";
mail($email, $subject, $body, $headers);
/Per Jessen, Zürich