I don't know the answer to your problem but you can look at swift
mailer - they have some nice ways of sending mass emails.
I've built a swift mailer sender on top of email component  but it was
client work so unfortunately i cant share it :/
there was a mass mailer component at devmoz.com afair

On Tue, May 6, 2008 at 4:52 PM, duRqoo <[EMAIL PROTECTED]> wrote:
>
>  Hello, i've was solving similar functionality not so far ago, but it
>  worked without problems.
>
>  It's really strange that your emails size is growing, but one thing
>  i've noticed from your code is that you are sending mails to each
>  address separately. Try using $cc or $bcc attribute, so u can send
>  same mail to more then one address at once. So get all addresses to an
>  array assign them to $cc or $bcc variable and execute the send method
>  just once, maybe that will help solve your issues in case you don't
>  have any crazy text stacking loop in mail template :).
>
>  Note: You will have to split mail addresses to smaller array parts and
>  send those through loop anyway. Depends on mail server restrictions
>  how many CC or BCC addresses are allowed for one mail, otherwise you
>  will get 'to many recipients' error.
>
>  Cheers, hope it helps.
>  duRqoo
>
>
>  On 6. Máj, 15:55 h., mbavio <[EMAIL PROTECTED]> wrote:
>  > Hi bakers, I have a little problem and I cant fint a decent solution,
>  > so I thought that here someone would delight me with some brilliant
>  > solution...
>  >
>  > I´m sending massive mails (Newsletter) to about 300 people. After the
>  > first sent, some users complained that the mail was producing an
>  > Outlook error of memory, and they cant open the email.  After that, I
>  > tested the app sending the Newsletter to my email boxes, in a massive
>  > way. After doing that, I´ve seen that the email size increases after
>  > every sent. First I have mails of 18kb, and the last mails are about
>  > 50kb. I´m going to show my code now:
>  >
>  > function sendEmails(){
>  >                         set_time_limit(0);
>  >                         $this->edition = $this->Mail->whatNewsIs();
>  >                         $this->newsData = 
> $this->Mail->Newsletter->getNewsData($this->edition);
>  >
>  >                         $sends = $this->Mail->find('all', array('order' => 
> 'Mail.id ASC',
>  > 'limit' => $this->limit, 'restrict' => array('Mail')));
>  >                         $this->Email->replyTo = 'Acep News <[EMAIL 
> PROTECTED]>';
>  >                 $this->Email->from = "Acep News <[EMAIL PROTECTED]>";
>
> >                 $this->Email->sendAs = 'html';
>  >                         $this->Email->template = 'newsletter';
>  >                         $this->Email->layout = 'newsletter';
>  >                         $this->set('edition', $this->edition);
>  >                         $this->set('narticles', $this->newsData);
>  >                         if(!empty($sends)):
>  >                         foreach ($sends as $send):
>  >                                 if ($send['Mail']['newsletter_id'] != 
> $this->edition) {
>  >                                         
> $this->_changeNew($send['Mail']['newsletter_id']);
>  >                                 }
>  >                                 $this->Email->subject = 'Newsletter 
> Edición ' . $this->edition;
>  >                                 $this->Email->to = $send['Mail']['email'];
>  >
>  >                                 if($this->Email->send())
>  >                                         
> $this->Mail->del($send['Mail']['id']);
>  >
>  >                         endforeach;
>  >
>  >                         $this->Email->reset();
>  >                         $this->Email->to = "[EMAIL PROTECTED]";
>
> >                         $this->Email->subject = "Tiempo tardado";
>  >                         $this->Email->from = "AcepNews <[EMAIL 
> PROTECTED]>";
>
>
> >                         $this->Email->template = null;
>  >                         $this->Email->sendAs = 'text';
>  >                         $content = date('d-m-Y H:i:s');
>  >                         $this->Email->send($content, null, null);
>  >
>  >                         endif;
>  >                 }
>  >
>  > As you can see, I´m using template and layout, and no, I havent proved
>  > yet to send the mail without the use of template and layout.
>  >
>  > Well, anybody has been in some similar situation? Any kind of help is
>  > apreciated.
>  >
>  > Thanks!
>  > mbavio
>  >
>



-- 
Marcin Domanski
http://kabturek.info

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to