php3-list | 199908
Date: 08/10/99
- Next message: Robert Aden: "[PHP3] Removal of users from the list?"
- Previous message: Robert Aden: "Re: [PHP3] data validation"
- Maybe in reply to: bben: "[PHP3] : [PHP3] about sendmail and mail()"
- Next in thread: Jacob Stetser: "[PHP3] Re: : [PHP3] about sendmail and mail()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Citerar bben <bben <email protected>>:
>
> >
> >I think he nicely tried to tell you not to do it in php, the whole
idea
> >sounds outrageous. To handle that much mail i think you have to make
use
> >of other tools than php ( this is not what its ment to do ).
> >
> >Is all the users on the same server ? If so i guess the fastes would
be
> >some simple c program that copies the mails right into the files.
> >I think the mail.local program included with sendmail could be
modified
> >for that task ( there's locking and stuff to consider if its going to
> >work ).
> >
> >// Robert
> >
>
> hello,Robert
> I can not know how to write this program with C on linux,
> can you give me a sample?
>
> thanks.
I dont have the time to write an example in C , but the basic structure
would be to:
1. Extract the list of addresses to mail to.
2. Format the message to include the needed parts ( To: From: Date:
Subject: and message ) etc etc.
3. Use a function that opens/locks ( mail.local have all the neccesary
code to do all this in a function called "deliver" ) that users
mbox-file.
4. Appends the message to the mbox.
As this would not spawn a new process per mail and just appends the mail
directly to the file i think it would be really fast. It would not
necesarily have to be done in C , perl ( or perhaps even some
shellscript ) might do it aswell.
Sorry for not beeing able to help you further but i dont have any time
to spare right now.
// Robert
>
>
>
>
> >Citerar bben <bben <email protected>>:
> >
> >> Can you tell me how can do it in detail.
> >> I am a newbie for php and linux.
> >>
> >> thanks.
> >>
> >>
> >> >Set timeout to 0 in the script that's sending assuming you're not
in
> >> >safemode and make a nice cup of coffee. In fact, plant some
coffee
> >> plants,
> >> >grow and cultivate the beans, hand grind them and brew slowly
after
> >having
> >> >flown around the world twice in search of the perfect spring
water...
> >> >
> >> >It may take a while...
> >> >
> >> >C!
> >> >
> >> >-----Original Message-----
> >> >From: bben <bben <email protected>>
> >> >To: Teodor Cimpoesu <teo <email protected>>
> >> >Cc: phpmailist <php3 <email protected>>
> >> >Date: 09 August 1999 14:32
> >> >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>
> >>
> >>
> >> --
> >> 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>
> >>
> >>
> >
> >
> >
> >There are 3 kinds of people in this world:
> >those who can count and those who can't.
> >
> >--
> >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>
>
>
There are 3 kinds of people in this world:
those who can count and those who can't.
-- 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: Robert Aden: "[PHP3] Removal of users from the list?"
- Previous message: Robert Aden: "Re: [PHP3] data validation"
- Maybe in reply to: bben: "[PHP3] : [PHP3] about sendmail and mail()"
- Next in thread: Jacob Stetser: "[PHP3] Re: : [PHP3] about sendmail and mail()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

