I would like to send a mail to more then one person. I take the emailadresses from a mysql database.
$allmails = "noone@aol.com";
$emails = mysql_query("SELECT email FROM account");
while (list($email) = mysql_fetch_row($emails))
{
$allmails .= ",".$email;
}
mail($allmails, $betreff, $message,"From: Me\n");
On execute this, I always get a message: Server Error.
By using @mail there is no error message but the mail isn`t sent ,too.
Could anybody help me?