티스토리 뷰

그누보드5에서 회원가입 인증 메일이나 테스트 메일을 보냈지만 도착하지 않을 때 해결 방법입니다.

 

mailer.lib.php 파일에서 아래와 같이 내용을 수정해주시면 됩니다. (네이버 메일 기준)

 

Before (수정 전)

$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;
}

 

After (수정 후)

$mail = new PHPMailer(); // defaults to using php "mail()"
if (defined('G5_SMTP') && G5_SMTP) {
	$mail->Host = G5_SMTP; // SMTP server
    $mail->Port = 465;
	$mail->IsSMTP(); // telling the class to use SMTP
    $mail->SMTPAuth = true;
    $mail->SMTPSecure = "ssl";
    $mail->Host = "smtp.naver.com";
    $mail->Port = 465;
    $mail->Username = "네이버 아이디";
    $mail->Password = "비밀번호";
}

 

공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2025/05   »
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
글 보관함