Guest  

Welcome Guest, posting in this forum requires registration.

Pages: [1]
Topic: How to send cakephp multiple email address?
Guest
Member
Posts: 14

Reputation: 21
How to send cakephp multiple email address?
on: March 3, 2016, 11:58

How to send cakephp multiple email address?

Guest
Member
Posts: 38

Reputation: 59
Re: How to send cakephp multiple email address?
on: March 3, 2016, 13:49

Cake 2.x
$Email = new CakeEmail();
$Email->from(array('me@example.com' => 'My Site'));
$Email->to(array('you@example.com','asdf@readyourlessons.com');
$Email->subject('About');
$Email->send('My message');

cake 3.x
$email = new Email();
$email->to('to@example.com', 'To Example');
$email->addTo('to2@example.com', 'To2 Example');
// The email's To recepients are: to@example.com and to2@example.com
$email->to('test@example.com', 'ToTest Example');
// The email's To recepient is: test@example.com

Guest
Member
Posts: 14

Reputation: 21
Re: How to send cakephp multiple email address?
on: March 3, 2016, 16:28

thanks

Pages: [1]
WP Forum Server by ForumPress | Lucid Crew
Version: 1.8.2 ; Page loaded in: 0.035 seconds.

Share This: