mediatemple - não é possível enviar email usando codeigniter
Não consigo enviar e-mails usando mediatemple no codeigniter. Verifiquei a senha do e-mail e o host smtp e eles estão corretos.
Este é o erro:
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
Este é o meu código: eu substituí o sxxxxx.gridserver.com pelo meu smtp correto.
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();
}
Qualquer ajuda seria apreciada.
Edit: eu corrigi este problema usando a porta 25.