PHP and email

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
riversr54
Forum Newbie
Posts: 9
Joined: Wed Feb 24, 2010 9:02 am

PHP and email

Post by riversr54 »

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
shuhail
Forum Newbie
Posts: 16
Joined: Sun Jun 28, 2009 5:52 am

Re: PHP and email

Post by shuhail »

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.
riversr54
Forum Newbie
Posts: 9
Joined: Wed Feb 24, 2010 9:02 am

Re: PHP and email

Post by riversr54 »

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,
Post Reply