codeigniter에서 mediatemple을 사용하여 전자 메일을 보낼 수 없습니다. 전자 메일 암호와 smtp 호스트를 확인했으며 올바른 내용입니다. 이 내 코드입니다mediatemple - codeigniter를 사용하여 전자 메일을 보낼 수 없습니다.
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
: : 내 올바른 SMTP와 sxxxxx.gridserver.com을 교체 한
이
는 오류입니다.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();
}
어떤 도움을 주시면 감사하겠습니다.
편집 : 나는 당신이 the codeigniter documentation for the email class를 참조하여 설정을 초기화 할 필요가 포트 25
당신이 SSL을 통해 연결하는과가 연결을 거부 있다면, 당신은 SSL이/사용/사용에 올바르게 구성 설치되어 있지 않은 가능성이 있습니다 당신의 섬기는 사람. 'phpinfo()'는 어떻게 생겼습니까? – Seabass
SSL이 지원되고 사용 가능합니다. – user1217380
로컬 컴퓨터에서 사용하고있을 수도 있습니다 – saravanabawa