mediatemple - nie można wysyłać wiadomości e-mail za pomocą codeigniter

Nie mogę wysyłać e-maili za pomocą mediatemple w codeigniter. Sprawdziłem hasło e-mail i hosta smtp i są one poprawne.

To jest błąd:

Severity: Notice

Message: fwrite() [function.fwrite]: send of 12 bytes failed with errno=10054 An existing connection was forcibly closed by the remote host.

Filename: libraries/Email.php

Line Number: 1846

To jest mój kod: zastąpiłem sxxxxx.gridserver.com poprawnym smtpem.

function _sendEmail($from,$fromname,$to,$subject,$message){
            $config = array(
            'protocol' => 'smtp',
            'smtp_host' => 'sxxxxx.gridserver.com',
            'smtp_port' => 465,
            'smtp_user' => '[email protected]',
            'smtp_pass' => 'mypass'
        );


        $this->load->library('email',$config);
        $this->email->set_newline("\r\n");

        $this->email->from($from,$fromname);
        $this->email->to($to);
        $this->email->subject($subject);
        $this->email->message($message);
        $this->email->send();
    }

Każda pomoc byłaby doceniana.

Edytuj: Naprawiłem ten problem przy użyciu portu 25.

questionAnswers(2)

yourAnswerToTheQuestion