hereis my code,....
mysql get all the user data at once and send it at once to prevent my sistem
from crash i add the sleep 2
mysql_connect($hostname,$mysqluser,$mysqlpassword);
$result=mysql_db_query("radius","SELECT * FROM profile");
while ($rows=mysql_fetch_array($result)) {
$to=$rows["UserName"];
mail("$[EMAIL PROTECTED]","$subject","$mail","From:
[EMAIL PROTECTED]");
sleep(2);
}
echo "<p align=\"center\"><font size=\"+1\"><b><font face=\"Courier New,
Courier, mono\" color=\"#FFCC33\">";
echo " Sending Mail in Progress ...";
echo "</font></b></font></p>";
----- Original Message -----
From: Jon Haworth <[EMAIL PROTECTED]>
To: 'Yamin Prabudy' <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, February 07, 2001 5:24 PM
Subject: RE: [PHP] sending mail with PHP from web
> Can we see some code? I run a very similar thing (sending mails to around
> 500 people whose details are stored in a MySQL database and accessed via
> PHP) - the only difference is my OS is NT4 not FreeBSD.
>
>
> -----Original Message-----
> From: Yamin Prabudy [mailto:[EMAIL PROTECTED]]
> Sent: 07 February 2001 02:58
> To: PHP List
> Subject: [PHP] sending mail with PHP from web
>
>
> Hi there,...
> i had make a web interface to send announcement mail to my
customers,..rite
> now i had about 500
> once I send mail to my customers my server hang ( i guess to much open
> file)...i complie by kernel again to get a big descriptor, but still
worried
> about the hang problem....i put a delay in my program so it send a mail
and
> delay in x time, but i get a web error and my mail stop sending in my
> customer number 300
>
> sorry for the broken english
>
> can any one help me with this kind of problem...
> i get my customer from mysql table, using freebsd4.1 and php4
>
> Yamin Prabudy
>
>
> --
> PHP General 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 General 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 General 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]