For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > January 2007 > PEAR::Mail, how to send newsletters?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author PEAR::Mail, how to send newsletters?
Leo Márquez

2007-01-24, 7:02 pm

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.

Thanks.

Leo
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com