Now i do send emails with this loop:
while($data = mysql_fetch_assoc($resultat)){
...
sendMail();
}
function sendMail(){
...
mail($to, $subject, $text, $headers);
}
But this is not so memory efficient what I can understand. The script should be able to send to over 1000 receivers.
Do you know how to do this in a better way? I want to keep it simple and do not wont to install any framework.