티스토리 뷰
그누보드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 = "비밀번호";
}
'프로그래밍 > 웹 개발' 카테고리의 다른 글
자바스크립트 쿠키 (Cookie) 사용 방법 (0) | 2022.11.24 |
---|---|
리눅스 iptables 포트포워딩 방법 (0) | 2022.11.23 |
Node.js와 npm 최신 버전으로 업그레이드 (0) | 2022.11.22 |
iptables 특정 IP 혹은 대역 차단 (0) | 2022.11.22 |
리눅스에 Node.js 설치하기 (0) | 2022.11.22 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- node.js
- pm2
- httpd
- CentOS7
- 최소옵션
- MariaDB
- virtualhost
- ip 대역 차단
- 방화벽
- deletecookie
- setcookie
- 리눅스
- 중지
- apache
- 최신 버전
- 그누보드5
- iptables
- phpmailer
- IP 차단
- https
- NPM
- systemctl
- 리다이렉트
- 80번 포트
- getcookie
- latest
- htaccess
- 포트 열기
- 설치
- 포트 닫기
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함