Igor Martins
Igor Martins

Reputation: 2047

Timeout sending email with Cakemail

I'm trying to send an email using CakeMail. I'm using Wamp Server, ok?

My email.php is this:

public $gmail = array(
    'host' => 'ssl://smtp.gmail.com',
    'from' => array('[email protected]' => 'xxx'),
    'port' => 465,
    'transport' => 'Smtp',
    'username' => '[email protected]',
    'password' => 'xxx',

);

In My controller:

App::uses('CakeEmail', 'Network/Email');
$Email = new CakeEmail('gmail');
$Email->to('[email protected]');
$Email->subject('About');
$Email->send('My message');

And I get Timeout!!!

Fatal Error Error: Maximum execution time of 30 seconds exceeded
File: C:\wamp\www\societario\lib\Cake\Network\CakeSocket.php
Line: 190

Any help, please?

Upvotes: 0

Views: 520

Answers (1)

Igor Martins
Igor Martins

Reputation: 2047

Solved.

I tested the application in another network and this work fine. Although the first network having Internet for some reason it's don't work. Was some kind of network problem. Thanks

Upvotes: 1

Related Questions