I am using this line to concatenate variables for a mail out
$message = $message1." ".$message2." ".$message3." ".$message4." ".$message5." ".$message6." ".$message7." ".$message8." ".$message9;
This works fine, except I have another four variables to add, but when I add more than $message9 it stops the mail out.
Here is my mail loop
// Mail it
$filename = "..email_addresses.txt";
//start mail out
set_time_limit(0); // this will keep the script from stopping if it takes longer then 30 seconds, must have this here
$emailaddress = file($filename, FILE_IGNORE_NEW_LINES);
$emailsubject = "New messages added to the website";
$fromaddress = "sample@sample.com";
$i = count($emailaddress);
$z = 0;
if ($i != 0)
{
while ($i != $z)
{
mail($emailaddress[$z], $emailsubject, $message, $headers);
++$z;