RE: Cannot send a hyperlink

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Still parsing as text and not html!

<a href="http://www.zoneofsuccessclub.com";>link </a>
//<a href="http://www.zoneofsuccessclub.com";>link </a>

$email = $_REQUEST['email'] ;
$fromaddress .= 'admin@xxxxxxxxxxxxxxxxxxxxx';
$fromname .= 'Zone of success Club';
$eol="\r\n";
$headers  = "From: ".$fromname."<".$fromaddress.">".$eol;
$headers .= "Reply-To: ".$fromname."<".$fromaddress.">".$eol;
$headers .= "Return-Path: ".$fromname."<".$fromaddress.">".$eol;
$headers .= "Message-ID: <".time()."-".$fromaddress.">".$eol;
$headers .= "X-Mailer: PHP ".phpversion().$eol;
$body .= "--".$htmlalt_mime_boundary.$eol;
$body .= "Content-Type: text/html; charset=iso-8859-1".$eol;
$body .= "Content-Transfer-Encoding: 8bit".$eol.$eol;
$body = "<a href=\"http://www.zoneofsuccessclub.com\";>link </a>\n";
mail($email, $subject, $body, $headers);

-----Original Message-----
From: Per Jessen [mailto:per@xxxxxxxxxxxx] 
Sent: Thursday, November 15, 2007 9:48 AM
To: php-general@xxxxxxxxxxxxx
Subject: RE:  Cannot send a hyperlink

Brad wrote:

> Beginning with
> $headers .= "--".$htmlalt_mime_boundary.$eol;
> It starts to read it as text and not html??
> 
> Could this be a server side problem?

Nope.

> $email = $_REQUEST['email'] ;
> $fromaddress .= 'admin@xxxxxxxxxxxxxxxxxxxxx';
> $fromname .= 'Zone of success Club';
> $eol="\r\n";
> $headers  = "From: ".$fromname."<".$fromaddress.">".$eol;
> $headers .= "Reply-To: ".$fromname."<".$fromaddress.">".$eol;
> $headers .= "Return-Path: ".$fromname."<".$fromaddress.">".$eol;
> $headers .= "Message-ID: <".time()."-".$fromaddress.">".$eol;
> $headers .= "X-Mailer: PHP ".phpversion().$eol;
> $headers .= "--".$htmlalt_mime_boundary.$eol;
> $headers .= "Content-Type: text/html; charset=iso-8859-1".$eol;
> $headers .= "Content-Transfer-Encoding: 8bit".$eol.$eol;
> $body = "<a href=\"http://www.zoneofsuccessclub.com\";>link </a>\n";

You have a MIME boundary where it doesn't belong.  MIME boundaries are
for the body, not the header. 


/Per Jessen, Zürich

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.15.32/1131 - Release Date: 11/14/2007
4:54 PM
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.15.32/1131 - Release Date: 11/14/2007
4:54 PM
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux