I am using CakeEmail to send mails on my website, below are my config file info
public $default = array(
'host' => 'smtpout.asia.secureserver.net',
'port' => 25,
'username' => 'xxxxxx',
'password' => 'xxxxxx',
'transport' => 'smtp',
// "tls"=>true
);
It is working fine in my local computer but it is giving the below error on godaddy shared hosting.
Class "smtpTransport" not found.
Error: An Internal Error Has Occurred.
Stack Trace
CORE/Cake/Network/Email/CakeEmail.php line 1265 → CakeEmail->transportClass()
CORE/Cake/Network/Email/CakeEmail.php line 1133 → CakeEmail->_applyConfig(string)
APP/Controller/AppController.php line 46 → CakeEmail->config(string)
APP/Controller/ServicesController.php line 48 → AppController->sendMail(string, string, string, string, array)
[internal function] → ServicesController->consultnow()
CORE/Cake/Controller/Controller.php line 490 → ReflectionMethod->invokeArgs(ServicesController, array)
CORE/Cake/Routing/Dispatcher.php line 191 → Controller->invokeAction(CakeRequest)
CORE/Cake/Routing/Dispatcher.php line 165 → Dispatcher->_invoke(ServicesController, CakeRequest)
APP/webroot/index.php line 108 → Dispatcher->dispatch(CakeRequest, CakeResponse)
Thanks
According to CakePhp's DOC the class is SmtpTransport
not smtpTransport
Autoloader is case sensitive
Reference: http://api.cakephp.org/2.5/class-SmtpTransport.html