구글메일사용ㅜㅜ

구글메일사용ㅜㅜ

QA

구글메일사용ㅜㅜ

본문

윈도우서버에서 메일서버말고


구글메일을 사용하려구요 ,,


61565dc706bbbb3504cb1a8f1dc3e4e9_1508208536_5819.png
 config.php 이렇게 수정후에


 mailer.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

        $mail->Port = 465;  // set the SMTP port 

        $mail->IsSMTP(); 

        $mail->SMTPAuth  = true;                  // enable SMTP authentication 

        $mail->SMTPSecure = "ssl";                // sets the prefix to the servier 

        $mail->Host      = "smtp.gmail.com";      // sets GMAIL as the SMTP server 

        $mail->Port      = 465;                  // set the SMTP port for the GMAIL server 

        $mail->Username  = "아이디";  // GMAIL username 

        $mail->Password  = "비번";            // GMAIL password 


아이디 비번부분 잘 작성했는데 메일발송이 전혀 안됩니다..


다른 부분또 수정할곳이있나요?

이 질문에 댓글 쓰기 :

답변을 작성하시기 전에 로그인 해주세요.
전체 123,630 | RSS
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT