Nope, you can't, use the loop to create a temp variable containing the 
message,

or do this:

mail($to, $subj, implode("\n", $Name_Passenger_), $header);

bvr.

Richard Bradley wrote:

>I want to run a loop inside of the "body" section of the mail() function.
>
>// ********CODE SNIPPLET************ //
>mail ($to, $subj,
>for ($i = 0; $i < $passengerNumber; ++$i) {
>$Name_Passenger_[$i]
>"
>}
>, $header);
>// *******END CODE SNIPPLET *********//
>
>
>I can't seem to run the loop inside a variable either. Any suggestions?
>
>




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

Reply via email to