smtp - Connection refused Error cakephp -
i can't send email through website is hosted, on localhost works normally, since hosted doesn't. made hosting godaddy.
email.php:
class emailconfig { public $smtp = array( 'transport' => 'smtp', 'from' => array('rukacoradelo@gmail.com' => 'matheus'), 'host' => 'smtp.gmail.com', 'port' => 587, 'timeout' => 30, 'username' => 'rukacoradelo@gmail.com', 'password' => '*********', 'client' => null, 'log' => false, 'charset' => 'utf-8', 'headercharset' => 'utf-8', 'tls' => 1, ); }
erro:
connection refused error: internal error has occurred. stack trace core/cake/network/email/smtptransport.php line 154 → cakesocket->connect() core/cake/network/email/smtptransport.php line 95 → smtptransport->_connect() core/cake/network/email/cakeemail.php line 1161 → smtptransport->send(cakeemail) app/controller/pagescontroller.php line 58 → cakeemail->send() [internal function] → pagescontroller->home() core/cake/controller/controller.php line 490 → reflectionmethod->invokeargs(pagescontroller, array) core/cake/routing/dispatcher.php line 193 → controller->invokeaction(cakerequest) core/cake/routing/dispatcher.php line 167 → dispatcher->_invoke(pagescontroller, cakerequest) app/webroot/index.php line 108 → dispatcher->dispatch(cakerequest, cakeresponse)
Comments
Post a Comment