RE: [PHP] Cannot send a hyperlink

From: Date: Thu, 15 Nov 2007 14:58:59 +0000
Subject: RE: [PHP] Cannot send a hyperlink
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-264578@lists.php.net to get a copy of this message
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@zoneofsuccessclub.com'; $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@computer.org] Sent: Thursday, November 15, 2007 9:48 AM To: php-general@lists.php.net Subject: RE: [PHP] 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@zoneofsuccessclub.com'; > $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

« previous php.general (#264578) next »