Amigos tengo un problema con el envio de correos hace semanas sin poder solucionarlo
me sale este error
A PHP Error was encountered
Severity: Warning
Message: fwrite(): SSL operation failed with code 1. OpenSSL Error messages: error:140D00CF:SSL routines:SSL_write:protocol is shutdown
Filename: libraries/Email.php
Line Number: 1846
mi codigo php
Código PHP:
Ver original 'protocol' => 'smtp',
'smtp_host' => 'smtp-mail.outlook.com',
'smtp_port' => 587,
'smtp_pass' => 'mipass',
'smtp_timeout' => '60',
'charset' => 'iso-8859-1',
'smtp_crypto' => 'tls',
'newline' => '\r\n',
'crlf' => '\r\n',
'mailtype' => 'html'
);
$this->email->initialize($config);
$this->email->clear(TRUE);
$this->email->set_newline("\r\n");
$this->email->subject("Asunto");
$this->email->message("agarharharh");
if($this->email->send()){
echo "exito";
}else{
echo "error";
show_error($this->email->print_debugger());
}
antes me funcionaba pero ahora no
tambien tengo el Openssl habilitado