Yes, you will get a timeout.
I made a script that wrote a * on the page for each sent mail.
This way your script won't time out, and the sending process looks REALLY
cool.. hehe
Here's a sample snippet:
<?
while ($adr = mysql_fetch_array($query_sender)) {
$to = $adr["epost"] ;
$postid = $adr["postid"] ;
echo "*"; // Her is the * printed.
flush(); // Flush, to continously update page..
// Sending the mail
$send = mail($to,$subject,"$topp\n\n$sak\n\n$bunn","From: Havneavisen
<[EMAIL PROTECTED]>\nContent-Type: text/plain;
charset=iso-8859-1\nContent-Transfer-Encoding: 8bit\nReply-To: Havneavisen
<[EMAIL PROTECTED]>\nReturn-Path:
<[EMAIL PROTECTED]>\nX-Sender:
<[EMAIL PROTECTED]>\nX-Mailer: PHP\nSender:
[EMAIL PROTECTED]\n") ;
if (!$send) {
# Legg inn i databasen eller fil! <----
$table = "deadmail" ;
$dead_entry = "insert into deadmail (id, epost, base) VALUES
(\"$postid\",\"$to\",\"$base_1\")" ;
mysql_query($dead_entry) or die ("Could not store the bad mail") ;
echo "Problemer med � sende til $to<br>" ;
continue ;
}
// Log
$go_add = "INSERT INTO maillogg (epost, dato, type) VALUES (\"$to\",
NOW(), \"$base_1\")" ;
$add_em = @mysql_query($go_add) ;
if (!$add_em) {
echo "ERROR could not update: $to - $go_add<br> " ;
}
} end of while...
?>
> -----Opprinnelig melding-----
> Fra: Jonathan Hilgeman [mailto:[EMAIL PROTECTED]]
> Sendt: 2. november 2001 17:19
> Til: '[EMAIL PROTECTED]'; Cami
> Kopi: PHP DB list
> Emne: RE: [PHP-DB] sending bulk emails
>
>
> Interesting that this should come up. The company I work for needs to send
> out an e-mail to 95k of their subscribers. Now, this is the first
> time in 2
> years, so you can imagine that we'll be getting 94k of bounced e-mail
> addresses. So I'm writing a script that will handle sending out
> the e-mails
> and handling incoming bounced e-mail addresses. In any case, I would think
> that my PHP script would time out before sending 95k e-mails. I
> know it has
> timed out at 30 seconds before, but I can't remember if the faulty script
> had an endless loop for 30 seconds or if there was any data
> getting sent or
> received in that time. Anyone know beforehand whether I will get a timeout
> with sending these e-mails, and if so, how to work around it?
>
> - Jonathan
>
> -----Original Message-----
> From: Russ Michell [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 02, 2001 4:20 AM
> To: Cami
> Cc: PHP DB list
> Subject: Re: [PHP-DB] sending bulk emails
>
>
> > Does anybody know how to send bulk emails using php?
> Don't do it!!
>
> But of you must - I guess you could build an array containing email
> addresses, names, etc - taken
> from form input or a database or whatever and then loop the arrays mailing
> people...
>
> $mail = "mail(";
> for($i=0; $i<$email_array_name;$i++( {
> $mail .= "$values,";
> }
> $mail .= "\"$subject\",\"$body\",\"From: $from\");";
>
> Something like that anyway (that's just off the top of my head)
> Regards.
>
> Russ
>
> On Fri, 2 Nov 2001 11:26:22 -0000 Cami <[EMAIL PROTECTED]> wrote:
>
> > Hi guys,
> > Does anybody know how to send bulk emails using php?
> > Thanks,
> > Cami
> >
> > --
> > PHP Database Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
> #-------------------------------------------------------#
>
> "Believe nothing - consider everything"
>
> Russ Michell
> Anglia Polytechnic University Webteam
> Room 1C 'The Eastings' East Road, Cambridge
>
> e: [EMAIL PROTECTED]
> w: www.apu.ac.uk/webteam
>
> www.theruss.com
>
> #-------------------------------------------------------#
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]