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; Daniel Brown wrote: > On Nov 15, 2007 9:41 AM, Brad <brads@ftnco.com> wrote: >> ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

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

Daniel Brown wrote:
> On Nov 15, 2007 9:41 AM, Brad <brads@ftnco.com> 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?

>
> Negative. It's client-side error E304, resulting from a
> null-pointer exception between the chair and keyboard.


Usually abbreviated to PEBKAC if I'm not mistaken.

-Stut

--
http://stut.net/
Reply With Quote
  #12 (permalink)  
Old 11-15-2007
Daniel Brown
 
Posts: n/a
Default Re: [PHP] Cannot send a hyperlink

On Nov 15, 2007 11:10 AM, Stut <stuttle@gmail.com> wrote:
> Daniel Brown wrote:
> > On Nov 15, 2007 9:41 AM, Brad <brads@ftnco.com> 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?

> >
> > Negative. It's client-side error E304, resulting from a
> > null-pointer exception between the chair and keyboard.

>
> Usually abbreviated to PEBKAC if I'm not mistaken.


I'm afraid we're going to have to do a stack trace.

[Snaps on rubber glove]

Just.... try to relax.

--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107

If at first you don't succeed, stick to what you know best so that you
can make enough money to pay someone else to do it for you.
Reply With Quote
  #13 (permalink)  
Old 11-15-2007
Stut
 
Posts: n/a
Default Re: [PHP] Cannot send a hyperlink

Daniel Brown wrote:
> On Nov 15, 2007 11:10 AM, Stut <stuttle@gmail.com> wrote:
>> Daniel Brown wrote:
>>> On Nov 15, 2007 9:41 AM, Brad <brads@ftnco.com> 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?
>>> Negative. It's client-side error E304, resulting from a
>>> null-pointer exception between the chair and keyboard.

>> Usually abbreviated to PEBKAC if I'm not mistaken.

>
> I'm afraid we're going to have to do a stack trace.
>
> [Snaps on rubber glove]
>
> Just.... try to relax.


[Advises Brad to close his eyes and think of England]

-Stut

--
http://stut.net/
Reply With Quote
  #14 (permalink)  
Old 11-15-2007
Daniel Brown
 
Posts: n/a
Default Re: [PHP] Cannot send a hyperlink

On Nov 15, 2007 11:20 AM, Stut <stuttle@gmail.com> wrote:
> Daniel Brown wrote:
> > On Nov 15, 2007 11:10 AM, Stut <stuttle@gmail.com> wrote:
> >> Daniel Brown wrote:
> >>> On Nov 15, 2007 9:41 AM, Brad <brads@ftnco.com> 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?
> >>> Negative. It's client-side error E304, resulting from a
> >>> null-pointer exception between the chair and keyboard.
> >> Usually abbreviated to PEBKAC if I'm not mistaken.

> >
> > I'm afraid we're going to have to do a stack trace.
> >
> > [Snaps on rubber glove]
> >
> > Just.... try to relax.

>
> [Advises Brad to close his eyes and think of England]
>
> -Stut
>
> --
> http://stut.net/
>


[Pulls out his sword, chants the words "oobi flexor gondalis exo"
and conjures up LEVEL 12 warrior.]

Figured if we were going to go OT and role-play, may as well
geekspeak, too. ;-P

--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107

If at first you don't succeed, stick to what you know best so that you
can make enough money to pay someone else to do it for you.
Reply With Quote
  #15 (permalink)  
Old 11-15-2007
Instruct ICC
 
Posts: n/a
Default RE: [PHP] Cannot send a hyperlink


> 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-...wl_hotmailnews
Reply With Quote
  #16 (permalink)  
Old 11-15-2007
Instruct ICC
 
Posts: n/a
Default RE: [PHP] Cannot send a hyperlink


> Next time Brad, please try to take a look yourself at the line the error
> indicates (and the lines around it aswell) and TRY to figure out what
> MIGHT be wrong.
>
> - Tul


If it's not on the line it reported, it may be immediately above that line.

The only unhelpful error I've seen (once you know what T_STRING means) is when it gives you the last line number in your entire file.

__________________________________________________ _______________
Boo!*Scare away worms, viruses and so much more! Try Windows Live OneCare!
http://onecare.live.com/standard/en-...wl_hotmailnews
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 04:32 AM.


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