Błąd Gmaila SMTP w Codeigniter 2.1.3

widziałem wiele postów związanych z tymi problemami, wykonałem podane instrukcje, ale zawsze otrzymałem ten sam błąd ..

Chcę wysłać smtp gmail za pomocą Code Igniter 2.1.3, to jest kod:

class Email extends CI_Controller{

function index(){

$config = Array(
'protocol'      => 'smtp',
'smtp_crypto'   => 'ssl',
'smtp_host'     => 'smtp.gmail.com',
'smtp_user'     => '[email protected]',
'smtp_pass'     => '***********',
'smtp_port'     => 25,
'mailtype'      => 'text',
'smtp_timeout'  =>  15, 
'charset'       => 'iso-8859-1'
);
$this->load->library('email', $config);

$this->email->set_crlf("\r\n");
$this->email->set_newline("\r\n");
$this->email->from("[email protected]", "myName");
$this->email->to("[email protected]");
$this->email->subject("Email Test");
$this->email->message("This is email test");

if($this->email->send()){
    echo 'Email Send';
    }   else{
        show_error($this->email->print_debugger());
    }
}

a błąd zawsze taki jest,

Message: fsockopen(): unable to connect to ssl://smtp.gmail.com:25 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. )

Pomóż mi naprawić ten błąd, dzięki :)

questionAnswers(1)

yourAnswerToTheQuestion