I have a large list of email addresses and have been given the task of writing a PHP program to sent an HTML email including small images. I created a web page on my server that seems to work just fine for a small number of email addresses, but when I try to send to the entire list, the web page times out before it finishes. I guess I have two questions, and keep in mind that I am relatively new to PHP.
Can I adjust the web server (Apache) so that it does not timeout as quickly and therefore give the web page time to complete it's work before the timeout?
Is there a better way to address this problem than writing PHP code in a web page? Is it possible to write a PHP program that runs outside the web server, like a .exe file on Windows?
I would really appreciate any advice.
riversr54
PHP and email
Moderator: General Moderators
Re: PHP and email
You can't send vast emails at a time.
you can send 100 emails and take 2 seconds break and start again. (but it is time consuming in case of very large amount of email.)
better to try bcc function.
you can send 100 emails and take 2 seconds break and start again. (but it is time consuming in case of very large amount of email.)
better to try bcc function.
Re: PHP and email
Thanks for the information. Can you tell me a bit more about the bcc function? I'm currently useig PEAR Mail, is there a bcc function there?
Thanks,
Thanks,