0
CodeIgniter의 구성 :PHPMailer SMTP connect()가 실패했습니다. 해결 방법?
$config['useragent'] = 'PHPMailer'; // Mail engine switcher: 'CodeIgniter' or 'PHPMailer'
$config['protocol'] = 'smtp'; // 'mail', 'sendmail', or 'smtp'
$config['mailpath'] = '/usr/sbin/sendmail';
$config['smtp_host'] = 'smtp.gmail.com';
$config['smtp_user'] = '[email protected]';
$config['smtp_pass'] = '####';
$config['smtp_port'] = 465;
CodeIgniter는 컨트롤러 :
$this->load->library('email');
$this->email->from('[email protected]', 'Webers Infotech');
$this->email->to('[email protected]','Rushabh Shah');
$this->email->subject('Your Subject');
$this->email->message('Your Message');
if (!$this->email->send()) {
show_error($this->email->print_debugger());
}
사람이 내가이 문제를 해결할 수있는 방법 말해 주시겠습니까? 왜 작동하지 않는거야?
무엇이 오류입니까? –
DNS 조회가 서버에서 손상된 경우 SMTP 연결에 실패하는 경우가 있습니다. 체크 했니 – Deep
@DeepKakkar 아니요. 내가 확인하지 않았다. 그것을 어떻게 확인할 수 있습니까? –