Re: [PHP] Cannot send a hyperlink

This is a discussion on Re: [PHP] Cannot send a hyperlink within the PHP General forums, part of the PHP Programming Forums category; Brad wrote: > My bad, > You do not need command line access! > I should have read more. > &...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-15-2007
Stut
 
Posts: n/a
Default Re: [PHP] Cannot send a hyperlink

Brad wrote:
> My bad,
> You do not need command line access!
> I should have read more.
>
> I just need to get this puppy working is all.
> Php should be able to do this by it's self!


It can, *if* you create the email correctly.

PHPMailer will be quicker to put in than this merry-go-round you're on
right now. Seriously.

-Stut

--
http://stut.net/

> -----Original Message-----
> From: Stut [mailto:stuttle@gmail.com]
> Sent: Thursday, November 15, 2007 9:46 AM
> To: Brad
> Cc: 'Daniel Brown'; 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?
>>
>> $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";
>> mail($email, $subject, $body, $headers);

>
> You should not have a mime boundary in your headers. Why not use
> PHPMailer? All this (apparently) complicated stuff is already
> implemented for you. Either that or spend a few days learning about the
> structure of emails by following the links Daniel Brown sent you a few
> emails ago.
>
> PHPMailer can be found here: http://phpmailer.sf.net/
>
> -Stut
>

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:47 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0