RE: [PHP] Cannot send a hyperlink
| From: | Instruct ICC | Date: | Thu, 15 Nov 2007 20:33:29 +0000 |
| Subject: | RE: [PHP] Cannot send a hyperlink | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-264625@lists.php.net to get a copy of this message | ||
> We are sending email now,
> But we are back to the original problem,
> No hyperlink!
>
> $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 v".phpversion().$eol;
> $msg .= "--".$htmlalt_mime_boundary.$eol;
> $msg .= "Content-Type: text/html; charset=iso-8859-1".$eol;
> $msg .= "Content-Transfer-Encoding: 8bit".$eol.$eol;
> $body.= 'link ';
> $msg .= $body.$eol.$eol;
> mail($email, $subject, $msg, $headers);
>
>
> Yields
>
> Parse error: parse error, unexpected T_STRING in
> /home/zoneof5/public_html/index.php on line 76
If you can't deal with Example 1127. Sending HTML email http://php.net/manual/en/function.mail.php
Check out http://phpmailer.sourceforge.net/ and http://phpmailer.sourceforge.net/tutorial.php#4
_________________________________________________________________
Boo! Scare away worms, viruses and so much more! Try Windows Live OneCare!
http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=wl_hotmailnews