Re: can I mail unlimited in one click?
| From: | Greg Donald | Date: | Tue, 17 Dec 2002 00:40:27 +0000 |
| Subject: | Re: can I mail unlimited in one click? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-128514@lists.php.net to get a copy of this message | ||
On Mon, 16 Dec 2002, wrote:
>I wonder if I can mail 300 customers in one click?
>
>part of script:
>
>while($listrow = mysql_fetch_array($listresult)) {
>
> $recipient = $listrow[epost];
> $subject = "$subj";
> $message = "$mess";
> $headers .= "From: $admail\n";
> $headers .= "Reply-To: $admail\n";
> $headers .= "X-Mailer: PHP\n";
> mail($recipient, $subject, $message, $headers);
>}
>
>or is there a limit?
You may need to increase your max_execution_time, the default seems to be
30 seconds, pretty low for 300 emails:
>cat
locate php.ini|grep max_execution_time
max_execution_time = 30 ; Maximum execution time of each script, in
seconds
--
Greg Donald
http://destiney.com/