RE: [PHP] Cannot send a hyperlink
- From: brads@xxxxxxxxx ("Brad")
- Date: Sat, 10 Nov 2007 20:51:13 -0500
Explanation of code
$email = $_REQUEST['email'] ;
(generated by dreamweaver that pulls in the database functions)
$message = '<a href="'.www.zoneofsuccessclub.com.'">link </a>';
(my nemesis, I can not figure out this puppy. If it works at all, php will
generate it at text and not html. Taken from example I find on the web.)
$headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type:
text/html; charset=iso-8859-1' . "\r\n";
(found on the web to solve my html problem???)
mail( $email, "Your FREE book from Zone of Success Club .com", $headers,
$message, "From: $email" ); ?>
(Send the mail, when I put $headers in, the function quits working all
together.)
I hope this helps explain where my head is!
Brad
-----Original Message-----
From: Stut [mailto:stuttle@xxxxxxxxx]
Sent: Saturday, November 10, 2007 4:55 PM
To: Brad
Cc: 'Jochem Maas'; php-general@xxxxxxxxxxxxx
Subject: Re: [PHP] Cannot send a hyperlink
Brad wrote:
I am not sure that would help.
Just another can of worms.
The $_REQUEST is tied into a whole bunch of database functions.
I have no idea what you mean by this. It makes no sense to me.
My present code....
<?
$email = $_REQUEST['email'] ;
$message = '<a href="'.www.zoneofsuccessclub.com.'">link </a>';
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
mail( $email, "Your FREE book from Zone of Success Club .com",
$headers, $message, "From: $email" );
?>
You *really* need to read the manual page for function before you use
them. For example a quick glance at http://php.net/function.mail reveals
that you have the parameters in an almost completely wrong order.
And please tell me you're not really setting the to address directly
from an external variable with verifying that it's just an email address
and nothing else. Really bad idea.
-Stut
--
http://stut.net/
-----Original Message-----11/10/2007
From: Jochem Maas [mailto:jochem@xxxxxxxxxxxxx]
Sent: Saturday, November 10, 2007 3:44 PM
To: Brad
Subject: Re: [PHP] Cannot send a hyperlink
this will help: http://phpmailer.sourceforge.net/
Brad wrote:
I am having trouble send an email with a hyperlinklonger
Php is parsing html as text????
If I add the proper header information to ?make it work? The email no
goes through?11/10/2007
Here is the code
<?
$email = $_REQUEST['email'] ;
$body = '<a href="'.www.zoneofsuccessclub.com.'">link </a>';
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
mail( $email, "Your FREE book from Zone of Success Club .com",
$headers, $message, "From: $email" );
?>
Thanks
Brad
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.503 / Virus Database: 269.15.28/1122 - Release Date:
10:41 AM
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.503 / Virus Database: 269.15.28/1122 - Release Date:
10:41 AM11/10/2007
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.503 / Virus Database: 269.15.28/1122 - Release Date:
10:41 AM
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.503 / Virus Database: 269.15.28/1122 - Release Date: 11/10/2007
10:41 AM
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.503 / Virus Database: 269.15.28/1122 - Release Date: 11/10/2007
10:41 AM
.
- Follow-Ups:
- Re: [PHP] Cannot send a hyperlink
- From: Stut
- Re: [PHP] Cannot send a hyperlink
- References:
- Re: [PHP] Cannot send a hyperlink
- From: Stut
- Re: [PHP] Cannot send a hyperlink
- Prev by Date: RE: [PHP] Cannot send a hyperlink
- Next by Date: Re: [PHP] Cannot send a hyperlink
- Previous by thread: Re: [PHP] Cannot send a hyperlink
- Next by thread: Re: [PHP] Cannot send a hyperlink
- Index(es):
Relevant Pages
|
|