0
전자 메일을 보내기 위해 CI 전자 메일 클래스를 사용하려고하는데 보내려 할 때 페이지가 중단됩니다. 저는 MAMP를 사용하여 IIS와 현재 Mac에서 모두 시도했습니다. 코드는 장소 전체에 복사 된 것과 동일하며 다른 모든 사람들에게 효과가있는 것처럼 보입니다!MAMP/IIS에서 CodeIgniter/Gmail SMTP 시간 초과가 발생했습니다.
$config = Array(
'protocol' => 'smtp',
'smtp_host' => 'ssl://smtp.googlemail.com',
'smtp_port' => '465',
'smtp_user' => 'xxx',
'smtp_pass' => 'xxx',
'mailtype' => 'html',
'starttls' => true
);
$this->load->library('email', config);
$this->email->from('[email protected]', 'George');
$this->email->to('[email protected]');
$this->email->subject('hey this is an email');
$this->email->message('this is the content of the email');
$this->email->send();
다른 서버 설정 시도? 좋아