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 PROTECTED]";
 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 <[EMAIL PROTECTED]>
To: 'Yuri Petro' <[EMAIL PROTECTED]>
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:[EMAIL PROTECTED]] 
Sent: Sunday, April 28, 2002 5:17 PM
To: [EMAIL PROTECTED]
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" <[EMAIL PROTECTED]> ???????/???????? ? ????????
?????????:
000e01c1eef4$07cbeb40$0200a8c0@yoda">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 PROTECTED]";
> reset ($Email);
> while (list(, $To) = each ($Email)) {
> @mail ($To,$Subject,$Message,"From: $EmailSender\nReply-To:
> $EmailSender\nX-Mailer: PHP/".phpversion());
> }
>
> ?>
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to