Re: Cannot send a hyperlink

From: Date: Sat, 10 Nov 2007 21:47:00 +0000
Subject: Re: Cannot send a hyperlink
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-264305@lists.php.net to get a copy of this message
Brad wrote: > I am not sure that would help. I am. > Just another can of worms. no, not really, not at all. > The $_REQUEST is tied into a whole bunch of database functions. wtf. $_REQUEST is a super global - nothing what so ever to do with databases. > > My present code.... > .... is about as robust as a soap bubble. in a world where 60-70 of all mail is SPAM how far do you think the crufty output your generating is going to get? my guess is generally just as far as /dev/null on the recipient machine. which is why I suggested a mailer class that is known to work and wraps up all the tricky crap (and protects you from making stupid mistakes like opening up the mail() function to mail header injection attacks. most people will probably be using a DB as the source of dynamic content for generated emails, your situation is nothing special in that regard. > > <? > $email = $_REQUEST['email'] ; oh yeah and taking the 'to' email address from the request is just asking for your script to be turned into spambot. > $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" ); > ?> > > -----Original Message----- > From: Jochem Maas [mailto:jochem@iamjochem.com] > Sent: Saturday, November 10, 2007 3:44 PM > To: Brad > Subject: Re: [PHP] Cannot send a hyperlink > > this will help: http://phpmailer.sourceforge.net/ >

« previous php.general (#264305) next »