I am facing email related problem of php. I have 2 text files - list.txt contains emails list (say 500) and contents.txt contains the body of the letter. I like to retrieve the send the same contents in different mailers. Following is my code. But this is not working, though I do not receive any error. Please help me to solve it out.

PHP Code:
<?php

$emails
=file('http://72.52.158.223/list.txt');
$contents=file("http://72.52.158.223/contents.txt");

$str="";

for(
$i=0;$i<sizeof($contents);$i++)
{
    
$str=$str $contents[$i] ;
}

for(
$i=0;$i<sizeof($emails);$i++)
{
    
mail($emails[$i], "Message"$str"From: Tester<[email protected]>"); 
}

?>
Thank you in advance.