Re: sending mail with PHP from web

From: Date: Thu, 08 Feb 2001 04:48:54 +0000
Subject: Re: sending mail with PHP from web
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-38670@lists.php.net to get a copy of this message
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("$to@pro.net.id","$subject","$mail","From: support@pro.net.id"); 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 <JHaworth@witanjardine.co.uk> To: 'Yamin Prabudy' <phplist@pro.net.id>; <php-general@lists.php.net> 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:phplist@pro.net.id] > 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: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#38670) next »