카페24 호스팅을 사용 중입니다.
mailer.lib.php 를 아래처럼 수정했습니다.
관리자에서 메일 테스트를 해도 안되고, 비번찾기도 마찬가지입니다. TT
(localhost에서는 잘되는데, 이상하네요)
Copy
$mail = new PHPMailer(); // defaults to using php "mail()"
/*
if (defined('G5_SMTP') && G5_SMTP) {
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = G5_SMTP; // SMTP server
if(defined('G5_SMTP_PORT') && G5_SMTP_PORT)
$mail->Port = G5_SMTP_PORT;
}
*/
$mail->IsSMTP();
$mail->SMTPSecure = "ssl";
$mail->SMTPAuth = true;
$mail->Host = "smtp.gmail.com";
$mail->Port = 465;
$mail->Username = "1234@gmail.com";
$mail->Password = "1234";
답변 1개 / 댓글 1개
채택된 답변
+20 포인트
혹시 Gmail 내에서 보안설정 변경
https://www.google.com/settings/security/lesssecureapps 로 접속 하셔서 보안수준이 낮은 앱의 액서스 사용을 적용하시기 바랍니다~~
답변에 대한 댓글 1개
5년 전
답변을 작성하려면 로그인이 필요합니다.
감사합니다