Re: [PHP] can I mail unlimited in one click?

2002-12-16 Thread Stephen
The limit is by your webhost and by bandwidth. Emailing 300 people with that
script would be rather time consuming if your host is slow...


- Original Message -
From: Jan Grafström [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 16, 2002 4:34 PM
Subject: [PHP] can I mail unlimited in one click?


: Hi,
:
: 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?
:
: Thanks for any help
: Jan Grafstrom
:
:
:
: --
: PHP General Mailing List (http://www.php.net/)
: To unsubscribe, visit: http://www.php.net/unsub.php
:
:
:



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] can I mail unlimited in one click?

2002-12-16 Thread Greg Donald
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




RE: [PHP] can I mail unlimited in one click?

2002-12-16 Thread Chris Kay

I am emailing 150 or so

- 
Chris Kay (Systems Development) 
Techex Communications 
Website: www.techex.com.au Email: [EMAIL PROTECTED] 
Telephone: 1300 88 111 2 - Fax: (02) 9970 5788 
-  

-Original Message-
From: Greg Donald [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, 17 December 2002 11:40 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
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


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php