Sending emails from a CakePHP application is simply a piece of cake. Here is the basics according to Cakephp documentation. Here is the basic configuration in config/app.php
1 2 3 4 5 6 7 8 9 10 11 12 13 | 'EmailTransport' => [ 'default' => [ 'className' => 'Smtp', 'host' => 'smtp.xxxxx.com', 'port' => 587, 'timeout' => 30, 'username' => 'xxxxx@xxx.com', 'password' => 'xxxxxxx', 'client' => null, 'tls' => true, 'url' => env('EMAIL_TRANSPORT_DEFAULT_URL', null), ], ] |
In the EmailTransport configuration named default above the className parameter is the…