Hi,
I'm trying to make an interface for sending newsletters. I use a html form in fileA.php. The form action is fileB.php.
fileB.php is similar to this
<?php
$subject = "Newsletter from Lydhoer.dk";
$header = "From: "robot, lydhoer.dk" <robot@lydhoer.dk>";
$ures = @mysql_query("SELECT * FROM users");
while($urow = mysql_fetch_array($ures))
{
// use stuff from USERS to make mails individuel
$email = $urow['email'];
$message = "nothing";
mail($email, $subject, $message, $header);
}
?>
After loading for a while I get a "500 Internal Server Error" but only when I send to many (approx 70). If I send the newsletter to a smaller group (approx 15) it works out fine! It seems that some of the emails have been sent, but this really of no use...
I'm trying to make an interface for sending newsletters. I use a html form in fileA.php. The form action is fileB.php.
fileB.php is similar to this
<?php
$subject = "Newsletter from Lydhoer.dk";
$header = "From: "robot, lydhoer.dk" <robot@lydhoer.dk>";
$ures = @mysql_query("SELECT * FROM users");
while($urow = mysql_fetch_array($ures))
{
// use stuff from USERS to make mails individuel
$email = $urow['email'];
$message = "nothing";
mail($email, $subject, $message, $header);
}
?>
After loading for a while I get a "500 Internal Server Error" but only when I send to many (approx 70). If I send the newsletter to a smaller group (approx 15) it works out fine! It seems that some of the emails have been sent, but this really of no use...