Medientempel - E-Mail kann nicht mit Codeigniter gesendet werden
Ich kann mit mediatemple in codeigniter keine E-Mails senden. Ich habe das E-Mail-Passwort und den SMTP-Host überprüft und sie sind korrekt.
Das ist der Fehler:
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
Dies ist mein Code: Ich habe sxxxxx.gridserver.com durch mein korrektes SMTP ersetzt.
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();
}
Jede Hilfe wäre dankbar.
Bearbeiten: Ich habe dieses Problem mit Port 25 behoben.