Re: PEAR::Mail, how to send newsletters?
| From: | Justin Patrin | Date: | Wed, 24 Jan 2007 18:03:07 +0000 |
| Subject: | Re: PEAR::Mail, how to send newsletters? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-26411@lists.php.net to get a copy of this message | ||
On 1/24/07, Leo Márquez <leo@calidae.net> wrote:
Hi, I want to send a newsletter to 4000 recipients but my server says me: SMTP: Invalid response code received from server (code: 421, response: 4.3.2 Too many open connections.) Then I think I'm not doing a god job. I use Mail ans Mail_mime to send the newsletter that is in html format. I have tried it making one instance of the class for each recipient and sending one mail for each recipient. But I also have tried to chunk my recipients array and send emails to 50 recipients in each loop. I use the smtp option with autentication and the persists option set to true. There is a way to do this job more efficiently ? I don't know if I get this error from server from previeous tests this afternoon. Tomorrow I'll do more tests. I would apreciate some orientation.Mail_Queue -- Justin Patrin