Wednesday, November 30, 2011

Send Email problem with multiple receivers

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_number1@gmail.com), why is that? any suggestions!?!

$this->Email->to = 'email_number1@gmail.com, email_number2@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 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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate