Email Issues with mail()

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
dirgeshp
Forum Newbie
Posts: 23
Joined: Thu Jun 22, 2006 11:40 am

Email Issues with mail()

Post by dirgeshp »

I am using the mail() feature in php to mail 1000 users

the problem is after about 10seconds the page freezes or get interrupted...at this point i dont know if all or any of the emails were sent

is there a debug feature in mail() or a "delay" i can put in there to delay between each send?
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

take a look at d11's swift mailer. You can find it in the code snippets forum.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

You can also get it from my signature or at http://www.swiftmailer.org/.
User avatar
dull1554
Forum Regular
Posts: 680
Joined: Sat Nov 22, 2003 11:26 am
Location: 42:21:35.359N, 76:02:20.688W

Post by dull1554 »

see everyone bad talks the mail() function. i honestly dont mind it. it works great it ur on a *nix box, and so longs as u sett all hedders it works well.

a buddy of mine has a virtual pet site with 32k+ users and they all get emailed monthly via a cron that uses the mail() function
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Post by Roja »

dull1554 wrote:see everyone bad talks the mail() function. i honestly dont mind it.
Because you don't need authentication (ESMTP) for your mail server.

Because you don't need SSL support to connect to your mail server.

Because.. you get the idea. For your specific setup and environment, perhaps its all you need. But for a large number of users, its lacking even the ability to *send a single mail* from their properly configured mail server.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

dull1554 wrote:see everyone bad talks the mail() function. i honestly dont mind it. it works great it ur on a *nix box, and so longs as u sett all hedders it works well.

a buddy of mine has a virtual pet site with 32k+ users and they all get emailed monthly via a cron that uses the mail() function
I agree, mail() is great, for really really simple stuff. You can't expect everybody to understand what constitutes "all headers" and you certainly wouldn't want to use it to mass mail 1,000 users unless you want to create and close 1,000 connections 8O
Post Reply