While sending email, i am getting an error. Here is my code:
$email = new Email(‘default’);
$email->setFrom([‘email@example.com’ => ‘Test Cake Mail’])
->send(‘Test mail from CakePhp, please checkout.’);
$email object is created as i have debugged but its methods are said undefined.
I also need to debug the mail at local system rather than i send mail to recipients.
Please give some suggestions to debug mail and send properly.