자유게시판

그누보드 영카트 구글 메일 SMTP 이용 메일 보내기 설정하기

페이지 정보

profile_image
작성자천사 조회 9,912회 작성일 2021-09-10 18:00:48 댓글 0

본문

/lib/mailer.lib.php 파일 수정

 

        $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 = "이메일 주소 입력";

        $mail->Password = "이메일 주소 비밀번호 입력";

 

댓글목록

등록된 댓글이 없습니다.

Copyright © Claw’s Lab · blog.batifa.com