RE: Re[2]: [PHP] Re: Header question

From: Date: Sun, 28 Apr 2002 22:54:55 +0000
Subject: RE: Re[2]: [PHP] Re: Header question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-95041@lists.php.net to get a copy of this message
You need a closing quote after $EmailSender... .... $EmailSender"); miguel On Sun, 28 Apr 2002, Dean Ouellette wrote: > Not sure what is happening. Still getting same error. As soon as I > remove > \nX-Mailer: PHP/".phpversion() > I get the error message > > > > ___________________________________________- > May be you just made incorrect modification... > Correct php code: > > <?php > $Subject = "Look at this, I think you will like it"; //The Emails > subject > $Message = "Your message here"; > $Email[] = "email@here.com"; > reset ($Email); > while (list(, $To) = each ($Email)) { > @mail ($To,$Subject,$Message,"From: $EmailSender\nReply-To: > $EmailSender); > } > ?> > > Best regards, > Yuri. > www.AceHoster.com <- your one stop web hosting shop > > ---- Original Message ---- > From: Dean Ouellette <dean@ouellette.ws> > To: 'Yuri Petro' <petro@acehoster.com> > Subject: [PHP] Re: Header question > > > Now I get an error says Parse error: parse error in > /usr/local/psa/home/vhosts/sitename.com/httpdocs/involved/friendsubmit.p > hp on line 165 > > Line 165 is a </tr> > > -----Original Message----- > From: Yuri Petro [mailto:petro@acehoster.com] > Sent: Sunday, April 28, 2002 5:17 PM > To: php-general@lists.php.net > Subject: [PHP] Re: Header question > > Just replace the last line with: > > @mail ($To,$Subject,$Message,"From: $EmailSender\nReply-To: > $EmailSender); > > -- > Kind regards, > Yuri. > > >>>> www.AceHoster.com <<<< Quality web hosting > > > "Dean Ouellette" <dean@ouellette.ws> ???????/???????? ? ???????? > ?????????: > news:000e01c1eef4$07cbeb40$0200a8c0@yoda... > > > > I have a tell a friend script and got the php script from a friend to > > make it work. I am a newbie so still do not fully udners stand it. > > Here is the problem, it puts the following at the top of each e-mail: > > X-Mailer: PHP/4.1.2 > > > > > > Here is the script: > > > > <?php > > $Subject = "Look at this, I think you will like it"; //The Emails > > subject > > $Email[] = "email@here.com"; > > reset ($Email); > > while (list(, $To) = each ($Email)) { > > @mail ($To,$Subject,$Message,"From: $EmailSender\nReply-To: > > $EmailSender\nX-Mailer: PHP/".phpversion()); > > } > > > > ?> > > > > > > > >

« previous php.general (#95041) next »