|
-
Jul 10th, 2002, 02:58 PM
#1
Thread Starter
Hyperactive Member
sending out a mass mail from emails in a database
Hey all,
I was wondering what is the best way to loop through a query result and send an email to each email address in the records (1 per record).
I tried just looping through and using the mail() function, but for 1500 - 2000 emails it takes more than 10 mins, and that is not acceptable.
any other ways of doing it?
[this is not spam by the way. its for realtors to keep in touch with their clients]
thanks,
-
Jul 10th, 2002, 03:17 PM
#2
Fanatic Member
Considering you posted this in the PHP forum I am assuming this is online and is probably dealing with a SLQ or MySQL database.
The problem lies in that it takes 10 minutes b/c that is the fastest the server can spit out the emails, either due to bandwidth restrictions or the server just isnt fast enough for such a job due to lack of memory or physical resources.
Honestly the only other way would be to send them all at once, but that will take just as long (if not longer and would reveal everyones email address to everyone who received the email).
-Matt
-
Jul 10th, 2002, 03:29 PM
#3
Member
I agree with Matt; that's how vBulletin does it too, which is why when John sends out a mass mail to everybody that the support site becomes slow for hours.
-
Jul 10th, 2002, 04:25 PM
#4
actually php wasn't designed to send mass emails. it is the timeout factor in php. the best way to do it is with perl
-
Jul 10th, 2002, 04:32 PM
#5
Thread Starter
Hyperactive Member
ok thanks guys, ill see what i can dig up in perl.
-
Dec 3rd, 2002, 04:12 PM
#6
New Member
In Perl you can use the Sendmail.pm module as long as your web server the script is running on has access to an SMTP service.
-
Dec 3rd, 2002, 10:56 PM
#7
Stuck in the 80s
Since this thread is 3 months old, I'm guess he either:
1) Found a solution, or
2) Gave up and has moved on.
-
Dec 4th, 2002, 02:43 AM
#8
Conquistador
yes, no need to dig it up again
-
Dec 4th, 2002, 03:09 PM
#9
Thread Starter
Hyperactive Member
I whole heartily agree with the views expressed by Hobo.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|