• Re: Timeout when emailing many recipients in a script

    From vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvva@vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvva@hotmail.com to comp.lang.php on Fri Jul 14 09:59:43 2023
    From Newsgroup: comp.lang.php

    anglezzzzzzz.likesyou.org/a.phpraCraCraCraCraCraCraC raCraC christyansworld.atwebpages.com/a.phpraCraCraCraCraCraCraC youthmeetupplace.talk4fun.net/a.phpraCraCraCraCraCraCraCraC kohtumispaik3.66ghz.com/a.phpraCraCraCraCraCraCraCraCraCraC Heia...........Heida pilk peale nendele............
    Postita ka midagi sinna.
    Siis p|nrast hea mul lugeda, et mu lehtedel on m||ni k|+lastaja ka !
    On Monday, October 28, 2002 at 6:04:05rC>PM UTC+2, MORTEN HELLAND wrote:
    Hello!
    I have a mailinglist with a bit more than 1200 recipients. I'm having
    problem sending to all the recipients without getting timeout of the script. Does anyoine have experience with this problem and maybe a way to solve it?
    I use mySQL to read both the email and the message, but I don't think this should play any difference.
    This is the script I'm using for sending the messages:
    // ============================
    $fields = array( "email, id, message" );
    $res = databaseQuery( "newsletter_spool", $fields);
    while ($next = databaseGetValues ($res)) {
    mail( $next->email, "Nyhetsbrev fra Company", $next->message, "From:com...@mylist.com" );
    $fields = array ("id" => $next->id);
    databaseModify ("newsletter_spool", "delete", $fields);
    $EmailsSentCount++;
    }
    // ============================
    --- Synchronet 3.21d-Linux NewsLink 1.2