RE: [PHP] can I mail unlimited in one click?
| From: | Chris Kay | Date: | Tue, 17 Dec 2002 06:08:27 +0000 |
| Subject: | RE: [PHP] can I mail unlimited in one click? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-128515@lists.php.net to get a copy of this message | ||
I am emailing 150 or so....
---------------------------------------------------------
Chris Kay (Systems Development)
Techex Communications
Website: www.techex.com.au Email: chris.kay@techex.net.au
Telephone: 1300 88 111 2 - Fax: (02) 9970 5788
---------------------------------------------------------
-----Original Message-----
From: Greg Donald [mailto:destiney@destiney.com]
Sent: Tuesday, 17 December 2002 11:40 AM
To: jan@lillemanshus.com
Cc: php-general@lists.php.net
Subject: Re: [PHP] can I mail unlimited in one click?
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/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php