php3-list | 199908
Date: 08/16/99
- Next message: Chuck Hagenbuch: "Re: [PHP3] SuperCalendar..."
- Previous message: Kevin Heflin: "[PHP3] turning off error reporting."
- In reply to: bben: "[PHP3] ~{;X84~}: [PHP3] about sendmail and mail("
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On the machine that is running this ensure that you set sendmail to "queue"
mode (sometimes called deferred). The default is to "background" which
means it will try direct delivery. If you set it to "queue" then the
message will be spooled on your local machine to be sent out. This stops
your script from getting caught when their is an internet mail glitch.
I can't remember the exact options.
Richard
> -----Original Message-----
> From: bben <email protected> [mailto:bben <email protected>]
> Sent: Monday, August 09, 1999 7:00 AM
> To: Teodor Cimpoesu
> Cc: phpmailist
> Subject: [PHP3] ~{;X84~}: [PHP3] about sendmail and mail()
>
>
>
>
> >> bben wrote:
> >>
> >> hello,
> >>
> >> I have almost fifty thousand members on my site.
> >> I must send a email to all of member every week,
> >> The member's email is saved into mysql.
> >>
> >> bellow codes is my programing for sending email to all:
> >>
> >> $selsql="select userid,anonname,email,password from loverinfo";
> >> $query = mysql_query($selsql);
> >> if(mysql_num_rows($query)>0)
> >> {
> >> $count=0;
> >> while($row=mysql_fetch_array($query))
> >> {
> >> $msg="........";
> >> $count++;
> >> mail($row[2],my subject,$msg);
> >> }
> >> }
> >>
> >> When I run this script,it timeout!
> >> I think it timeout due to someone's email is wrong,
> >> so the script cost much time for waiting mail().
> >
> >if it is the same message for all your members use a single mail() call.
> >Also use a set_time_limit(n) before that call, and adjust n to match
> >your sendmail
> >speed.
> >Another idea is to create an alias for a group containing all the
> >members, and let sendmail
> >do the job.
> >--
> I had set timeout 6000
> and I can not use group,I must send mail from one to one
> because every mail is defferent.
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe <email protected>
> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected>
> To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
To contact the list administrators, e-mail: php-list-admin <email protected>
-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe <email protected> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Chuck Hagenbuch: "Re: [PHP3] SuperCalendar..."
- Previous message: Kevin Heflin: "[PHP3] turning off error reporting."
- In reply to: bben: "[PHP3] ~{;X84~}: [PHP3] about sendmail and mail("
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

