RE: [PHP] Cannot send a hyperlink

From: Date: Thu, 15 Nov 2007 14:48:12 +0000
Subject: RE: [PHP] Cannot send a hyperlink
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-264573@lists.php.net to get a copy of this message
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

« previous php.general (#264573) next »