PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Connections and sending bulk email

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Mail
View previous topic :: View next topic  
Author Message
Bertjuh



Joined: 19 Nov 2009
Posts: 1

PostPosted: Thu Nov 19, 2009 2:15 pm    Post subject: Connections and sending bulk email Reply with quote

Hi all,

I'm sending mails to 9000+ emails at once (not for spam Wink) and I must be sure that everyone gets their own email message. So no bcc-ing unfortunately.

See this code:

Code:

$this->oMailer =& Mail::factory('mail');

[..]

foreach($this->recipients as $recipient) {
    $result[] = $this->oMailer->send($recipient, $mime_headers, $mime_body);
    $this->wait();  // counter and after 200 mails it calls sleep(2)
}


- Does the $this->oMailer->send($recipient, $mime_headers, $mime_body); creates a new connection every time?
- Is it necessary to implement a wait() counter for 9000+ emails? to make sure the server doesn't skip emails?

Thanks in advance.
_________________
Apple
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Mail All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement