| View previous topic :: View next topic |
| Author |
Message |
Bertjuh
Joined: 19 Nov 2009 Posts: 1
|
Posted: Thu Nov 19, 2009 2:15 pm Post subject: Connections and sending bulk email |
|
|
Hi all,
I'm sending mails to 9000+ emails at once (not for spam ) 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 |
|
 |
|
|
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
|
|