How many emails can PHP send at one time?

I have over 4,000 users who have signed up for weekly email updates. To send an email, I just use:

mail($to,$subject,$message,$headers);

Which works great. My question is: how many letters can you send at once ? Can I send all 4000 at once by going through an array of letters inside a loop? Or will it cause a situation timeout, only part of the list will receive emails?

+5
source share
5 answers

, - PHP - script, . -, , . , , .

+7

PHP , , , .

linux sendmail sendmail. , , . Windows , , , .

, (2) (). , (1) . (500000) .. (: , set_time_limit (10) , .)

, , . ( , SMTP php.ini, linux, , .) , .

EDIT Mac. IP-. Mac , , , -. - - 4000 . (, , .) , , , . .

+3

php, sendmail - , .! PHP sendmail...!

+1

, , , . , PHP.

, WAMP, , mail() . , MTA, .

0

. . " cron"

0

All Articles