Re: [PHP] sending 5000+ emails - use PHP?
From: "Henrik Hansen" <[EMAIL PROTECTED]> > > strange but i heard otherwise, I heard that sorting by domain would > speed up thing because the mailserver allready has a connection to > the forign mailserver, what do you mean by repeated replies? > OK, I got it partly wrong this time. What I supposed to mean is if you send mail with qmail (like we're using here) and if you sort outgoing bulk mail by domain, your mail server will try to connect to that busy remote domain with up to concurrency remote limit (in qmail) connections via multiple processes. That's, therefore, a bad thing for the remote site. These mail will then get queue in local mail queue, waiting for another attempt. And if that remote site is still busy, same thing will happen again in the next attempt. But with unsorted mail, these situation shouldn't be as bad becuase you won't use up the concurrency remote limit with a single busy destination. It may be a different story with sendmail. -Kittiwat -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] sending 5000+ emails - use PHP?
"Kman" <[EMAIL PROTECTED]> wrote: > From: "infoz" <[EMAIL PROTECTED]> >> >> If all the messages were identical, we might be able to get some > efficiency >> by sorting the list by domain name and batching them up with SMTP > > That's a very BAD idea. If you sort the mail by domain, you will flood > the mail queue because normally, mail sent to hotmail or yahoo will need > a repeated attempts before getting through. Better leave the email > address randomized as they are. strange but i heard otherwise, I heard that sorting by domain would speed up thing because the mailserver allready has a connection to the forign mailserver, what do you mean by repeated replies? -- Henrik Hansen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] sending 5000+ emails - use PHP?
Justin Farnsworth <[EMAIL PROTECTED]> wrote: > We do this with mail() now and then. > > The caution about doing "periodic pauses" may be important. > A few years ago I crashed a mail server by doing a mass email > with no sleep() embedded. > > However, FWIW, not more than a month or so ago, just for the heck of > it, for a message that went to "only" about 2500, I took sleep() > out. I don't know what sendmail woes on our mail server running > Linux 6.2, but it did things gracefully, queued things up somehow, > and didn't choke. I have no idea what our mail server would do > with 100,000, though... also depends if you only have 'valid' email addresses in your database, means email addresses that actually excists and not just [EMAIL PROTECTED], if you have 2000 of them and all are thrown in your queue sendmail may choke a little more on 2500 messages, than if all goes right through. Or am I wrong? -- Henrik Hansen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] sending 5000+ emails - use PHP?
"Kman" <[EMAIL PROTECTED]> wrote: > Yes, if you can stop mail server. Then kill the related process. No, > otherwise. or if the browser window is open you can just press esc (you can leave it open is your timeout is disabled) -- Henrik Hansen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] sending 5000+ emails - use PHP?
Can't say that I agree. Once you get through to the SMTP port you can tell it that the following message is supposed to go to a list of people and you only connect once, vs. connecting once for each recipient. More efficient all the way around, I would think. Mind you, I haven't tried this on a large scale yet, so YMMV. - Tim > > If all the messages were identical, we might be able to get some efficiency > > by sorting the list by domain name and batching them up with SMTP > > That's a very BAD idea. If you sort the mail by domain, you will flood > the mail queue because normally, mail sent to hotmail or yahoo will need > a repeated attempts before getting through. Better leave the email > address randomized as they are. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] sending 5000+ emails - use PHP?
Kman wrote: >From: "infoz" <[EMAIL PROTECTED]> > >>If all the messages were identical, we might be able to get some >> >efficiency > >>by sorting the list by domain name and batching them up with SMTP >> > >That's a very BAD idea. If you sort the mail by domain, you will flood >the mail queue because normally, mail sent to hotmail or yahoo will need >a repeated attempts before getting through. Better leave the email >address randomized as they are. > >-Kittiwat > If it's such a a bad idea, sendmail should take it out of there system then. This is how they have achieved speedups in later versions - when processing a queue, it sorts by domain first, so that it can open a connection and send repeated emails, rather than open a separate connection for each mail to that domain. Michael Kimsal PHP Training Courses http://www.tapinternet.com/php/ 734-480-9961 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] sending 5000+ emails - use PHP?
From: "infoz" <[EMAIL PROTECTED]> > > If all the messages were identical, we might be able to get some efficiency > by sorting the list by domain name and batching them up with SMTP That's a very BAD idea. If you sort the mail by domain, you will flood the mail queue because normally, mail sent to hotmail or yahoo will need a repeated attempts before getting through. Better leave the email address randomized as they are. -Kittiwat -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] sending 5000+ emails - use PHP?
Yes, if you can stop mail server. Then kill the related process. No, otherwise. -Kittiwat - Original Message - From: "Matthew Delmarter" <[EMAIL PROTECTED]> To: "Michael Stearne" <[EMAIL PROTECTED]> Cc: "PHP Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, July 03, 2001 9:38 AM Subject: RE: [PHP] sending 5000+ emails - use PHP? > Is it possible to stop the mail delivery once the process has started - even > in the middle of a run? > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] sending 5000+ emails - use PHP?
Is it possible to stop the mail delivery once the process has started - even in the middle of a run? -Original Message- From: Michael Stearne [mailto:[EMAIL PROTECTED]] Sent: Monday, July 02, 2001 2:07 PM To: Matthew Delmarter Cc: PHP Mailing List Subject: Re: [PHP] sending 5000+ emails - use PHP? PHP can handle this (although you will definitely have to disable script timeout) in one run. But a smarter thing to do would be to not send all the 5000 emails at one time rather come up with a method that runs the PHP script every 5 minutes (a cron job) and send the newsletter out in 200+ email batches. This will reduce the load one the web server and also the mail server. Michael On Sunday, July 1, 2001, at 09:13 PM, Matthew Delmarter wrote: > I at looking at using PHP to send a monthly newsletter to 5000+ > users who > have subscribed via our site. The newsletter will be in HTML format for > those who have selected this option - otherwise plain text. > > Can PHP handle something like this? > > Regards, > > Matthew Delmarter > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: php-list- > [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] sending 5000+ emails - use PHP?
of course it can ;) > -Original Message- > From: Matthew Delmarter [mailto:[EMAIL PROTECTED]] > Sent: Sunday, July 01, 2001 9:13 PM > To: PHP Mailing List > Subject: [PHP] sending 5000+ emails - use PHP? > > > I at looking at using PHP to send a monthly newsletter to 5000+ users who > have subscribed via our site. The newsletter will be in HTML format for > those who have selected this option - otherwise plain text. > > Can PHP handle something like this? > > Regards, > > Matthew Delmarter > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] sending 5000+ emails - use PHP?
We use mail(). I have on my list to re-write it to use SMTP sometime to see if it works any faster, but it also goes into the "if it ain't broke, don't fix it" category. If all the messages were identical, we might be able to get some efficiency by sorting the list by domain name and batching them up with SMTP, but usually they're customized for each person. This gets run on a fairly beefy Sun E420 with an excellent network connection (Digital Island @ http://www.digitalisland.net) which may help things a bit. :) - Tim http://www.phptemplates.org >Are you using the mail() function for this? Or talking direct to an smtp >server? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] sending 5000+ emails - use PHP?
Richard Heyes wrote: > > > We regularly use PHP to send messages to a 100,000+ member > > mailing list. No > > problem. I did insert some periodic pauses to give the mail > > server some > > breathing room. :) > > Are you using the mail() function for this? Or talking direct to an smtp > server? - We do this with mail() now and then. The caution about doing "periodic pauses" may be important. A few years ago I crashed a mail server by doing a mass email with no sleep() embedded. However, FWIW, not more than a month or so ago, just for the heck of it, for a message that went to "only" about 2500, I took sleep() out. I don't know what sendmail woes on our mail server running Linux 6.2, but it did things gracefully, queued things up somehow, and didn't choke. I have no idea what our mail server would do with 100,000, though... -- Justin Farnsworth Eye Integrated Communications 321 South Evans - Suite 203 Greenville, NC 27858 | Tel: (252) 353-0722 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] sending 5000+ emails - use PHP?
> We regularly use PHP to send messages to a 100,000+ member > mailing list. No > problem. I did insert some periodic pauses to give the mail > server some > breathing room. :) Are you using the mail() function for this? Or talking direct to an smtp server? -- Richard Heyes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] sending 5000+ emails - use PHP?
We regularly use PHP to send messages to a 100,000+ member mailing list. No problem. I did insert some periodic pauses to give the mail server some breathing room. :) - Tim http://www.phptemplates.org >From: "Matthew Delmarter" <[EMAIL PROTECTED]> > I at looking at using PHP to send a monthly newsletter to 5000+ users who > have subscribed via our site. The newsletter will be in HTML format for > those who have selected this option - otherwise plain text. > > Can PHP handle something like this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] sending 5000+ emails - use PHP?
PHP can handle this (although you will definitely have to disable script timeout) in one run. But a smarter thing to do would be to not send all the 5000 emails at one time rather come up with a method that runs the PHP script every 5 minutes (a cron job) and send the newsletter out in 200+ email batches. This will reduce the load one the web server and also the mail server. Michael On Sunday, July 1, 2001, at 09:13 PM, Matthew Delmarter wrote: > I at looking at using PHP to send a monthly newsletter to 5000+ > users who > have subscribed via our site. The newsletter will be in HTML format for > those who have selected this option - otherwise plain text. > > Can PHP handle something like this? > > Regards, > > Matthew Delmarter > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: php-list- > [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]