Resolve Undefined namespace Mailer CakePHP 3.0.3

2

I'm trying to create a Reusable Email provided by CakePHP 3 but even following the documentation but I get the following error:

use Cake\Mailer\Mailer;

Error:

  

Undefined namespace Mailer

     

Referenced namespace is not found.

I created the file in the same directory specified in the documentation

OBS: I'm using CakePHP 3.0.3

Link to documentation: Link

    
asked by anonymous 06.08.2015 / 16:43

1 answer

2

Mailers will only be available in the CakePHP 3.1 version that is currently in beta.

Source: SOen

  

Meanwhile a Mail can be made through Namespace Cake\Network\Email in CakePHP version 3.0

    
17.08.2015 / 20:19