php doesnt send all mails !!!
i have a php script (newsletter) and it is in the nuke web system,i have about 1000 member or mails.
when i send to the news letter members , the page takes a lot of time to load , and after 2 minutes nearly it stops , and the browser gives page unavailable.
i found that nearly 200 mails have been actually sent , but the rest was not fast enought to be sent before the termination of that action file.
After doing some inverstigation in the php code , i found that the whole time is spent in the line
mail("$sendto","newsletter",....) i mean the mail function... and this line is in a loop .
what possibly could let the mail function take this long time , i ll appreciate any answer from anybody who runned similar problem.