Thursday, December 1, 2011

Re: Send Email problem with multiple receivers

if you are using the new EmailLib in 2.0 you should be using the
setter methods:
$this->Email->to()
etc


On 1 Dez., 06:36, Graham Weldon <predomin...@gmail.com> wrote:
> What CakePHP version are you on?
>
> Cheers,
> Graham Weldonhttp://grahamweldon.com
> e. gra...@grahamweldon.com
> p. (+61) 0407 017 293
> Skype: grahamweldon
>
>
>
>
>
>
>
> On Thursday, 1 December 2011 at 4:20 PM, MetZ wrote:
> > Hi..
> > Tried it, did not work either, only the first email in array get the
> > email.
>
> > Any other suggestions??
>
> > -Tom
>
> > On 1 Des, 06:03, Graham Weldon <predomin...@gmail.com (http://gmail.com)> wrote:
> > > Have you tried an array of email address?
>
> > > $this->Email->to = array('du...@rmail.com (http://rmail.com)', 'du...@email.com (http://email.com)');
>
> > > Cheers,
> > > Graham Weldonhttp://grahamweldon.com
> > > e. gra...@grahamweldon.com (http://grahamweldon.com)
> > > p. (+61) 0407 017 293
> > > Skype: grahamweldon
>
> > > On Thursday, 1 December 2011 at 4:02 PM, MetZ wrote:
> > > > Hi all!
>
> > > > I am having a problem, when sending email with multiple reveivers in
> > > > $this->Email->to
>
> > > > It will only send to one adress (the first one =>
> > > > email_numb...@gmail.com (mailto:email_numb...@gmail.com (http://gmail.com))), why is that? any suggestions!?!
>
> > > > $this->Email->to = 'email_numb...@gmail.com (mailto:email_numb...@gmail.com), email_numb...@gmail.com (mailto:email_numb...@gmail.com (http://gmail.com))';
> > > > $this->Email->subject = 'Ma Subject!';
> > > > $this->Email->from = Configure::read('App.noreply');
> > > > $this->Email->template = 'new_notify';
> > > > $this->Email->sendAs = 'both';
> > > > $this->Email->send();
> > > > $this->Email->reset();
>
> > > > --
> > > > Our newest site for the community: CakePHP Video Tutorialshttp://tv.cakephp.org
> > > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organdhelp others with their CakePHP related questions.
>
> > > > To unsubscribe from this group, send email to
> > > > cake-php+unsubscribe@googlegroups.com (mailto:cake-php+unsubscribe@googlegroups.com) For more options, visit this group athttp://groups.google.com/group/cake-php
>
> > --
> > Our newest site for the community: CakePHP Video Tutorialshttp://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > cake-php+unsubscribe@googlegroups.com For more options, visit this group athttp://groups.google.com/group/cake-php

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: