Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199908

[PHP3] : [PHP3] about sendmail and mail() From: bben (bben <email protected>)
Date: 08/09/99

>
>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.

>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>