I have recently converted a subscription only newsletter to email sending email with attachment. All works well even when looped to send multiple emails from database. What is noticeable is that after sending even a few everything seems to slow down after emails have been sent - is there some buffer somewhere or some other memory implication that needs to be cleared once a message has been sent?
$ok = @mail($email, $email_subject, $email_message, $headers);
if($ok) {
echo "The file $thefile was successfully sent! $email ($thename)";
} else {
echo "Sorry but the email $thefile could not be sent. Please go back and try again!";
}
$ok = @mail($email, $email_subject, $email_message, $headers);
if($ok) {
echo "The file $thefile was successfully sent! $email ($thename)";
} else {
echo "Sorry but the email $thefile could not be sent. Please go back and try again!";
}