답변 2개 / 댓글 1개
채택된 답변
+20 포인트
네이버 smtp로 보내보세요... 네이버에서 메일 외부허용해주시고
mailer.lib.php mailer 함수를 수정합니다.
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;
}
//--------------------------------------------------------------------------
// 관리자 스팜 처리 안되게
if($fmail == '[email protected]') { // [email protected](관리자메일)
$mail->Host = 'smtp.naver.com';
$mail->Port = 465;
$mail->Username = 'xxxx_id';
$mail->Password = 'xxxx_password';
$mail->SMTPAuth = true;
$mail->SMTPSecure = "ssl";
}
//--------------------------------------------------------------------------
답변을 작성하려면 로그인이 필요합니다.
아이디_ id 이렇게 쓰는건가요?
네이버 아이디죠?