CakeEmail Probleme auf dem Server

Ich benutze cakeEmail für einfache Formulare und auf localhost hat es super funktioniert, aber auf dem Server (Hosting) zeigt es mir diesen Fehler:

CONNECTION REFUSED
Error: An Internal Error Has Occurred.
Stack Trace

CORE/Cake/Network/Email/SmtpTransport.php line 101 → CakeSocket->connect()
CORE/Cake/Network/Email/SmtpTransport.php line 61 → SmtpTransport->_connect()
CORE/Cake/Network/Email/CakeEmail.php line 1124 → SmtpTransport->send(CakeEmail)
APP/Controller/ProductsController.php line 26 → CakeEmail->send(string)
[internal function] → ProductsController->email()
CORE/Cake/Controller/Controller.php line 490 → ReflectionMethod->invokeArgs(ProductsController, array)
CORE/Cake/Routing/Dispatcher.php line 187 → Controller->invokeAction(CakeRequest)
CORE/Cake/Routing/Dispatcher.php line 162 → Dispatcher->_invoke(ProductsController, CakeRequest, CakeResponse)
APP/webroot/index.php line 111 → Dispatcher->dispatch(CakeRequest, CakeResponse)

Ich habe keine Ahnung, wo das Problem liegt.

meine Config / email.php:

public $default = array(
        'transport' => 'Smtp',
        'from' => array('[email protected]' => 'My Site'),
        'host' => 'smtp.savana.cz',
        'port' => 25,
        'timeout' => 30,
        'username' => '[email protected]',
        'password' => '****',
        'client' => null,
        'log' => false,
);

Meine ProductsController.php:

public function email(){
    App::uses('CakeEmail', 'Network/Email');
    if ($this->request->is('post')) {
        $email = new CakeEmail('default');
        $email->from(array('[email protected]' => $this->request->data['Email']['name']));
        $email->to($this->request->data['Email']['sender']);
        $email->subject($this->request->data['Email']['name']);
        $email->send($this->request->data['Email']['message']);
        $this->Session->setFlash(__('Zpráva byla odeslána.'));
    }
}

und email.ctp ansehen:

echo $this->Form->create('Email');
echo $this->Form->input('name',array('label' => 'Jméno', 'required' => 'required'));
echo $this->Form->input('sender',array('type' => 'email','label' => 'Váš e-mail', 'required' => 'required'));
echo $this->Form->input('message', array('type' => 'textarea', 'label' => 'Zpráva', 'required' => 'required'));
echo $this->Form->submit('Odeslat', array('id' => 'button', 'div' => false));
echo $this->Form->end();

Ich habe versucht, meinen Hosting-Helplink aufzurufen und sie haben keine Ahnung, aber sie sagen, dass PHPMailer funktioniert. Ich bin neu mit cakePHP, also habe ich Probleme damit, es auf den Server zu verschieben. Kann jemand bitte elpen? Ich bin wirklich tief in diesem Problem.

Vielen Dank

Antworten auf die Frage(1)

Ihre Antwort auf die Frage