묻고답하기

xe 엔진으로 홈페이지를 구성하여 공부한지 2달 되어갑니다.

여러 시련 끝에 여기까지 왔는데, 아직도 멀지 쉽습니다.

나름 문제에 대한 해결책을 찾아보고 해결 방법을 찾지 못하여

이렇게 고수님께 도움을 요청합니다. 도움 부탁드립니다.

 

인증 메일 재발송을 하기 위해 

아래 게시글을 따라 설정을 줬습니다.

http://www.xpressengine.com/?mid=tip&page=2&document_srl=19201582


그런데, 나름 정확히 했다고 여겨지는데, 

설정을 주고 나면, 

사이트에 접속이 되질 않습니다. 

익스플로러. 크롬에서 접속을 하면, 

  • HTTP500 내부서버 오류 가 출력됩니다.



    1) 지메일 계정을 가지고 있고, 
        지메일 환경 설정에서  POP/IMAP 사용으로 설정을 주었습니다. 
    2) classes/mail/Mail.class.php 파일 소스를 변경 
       ㄱ)"Mail.class.php" 파일을 열어 상단에 
             옆의 내용을 추가해 주었습니다. require_once('PHPMailer/class.phpmailer.php');

       ㄴ)그리고 
    해당소스로 변경해 주었습니다. 

     function send() {
                $boundary = '----=='.uniqid(rand(),true);
                $this->eol = $GLOBALS['_qmail_compatibility'] == "Y" ? "\n" : "\r\n";

                $this->header = "Content-Type: multipart/alternative;".$this->eol."\tboundary=\"".$boundary."\"".$this->eol.$this->eol;
                $this->body = sprintf(
                    "--%s".$this->eol.
                    "Content-Type: text/plain; charset=utf-8; format=flowed".$this->eol.
                    "Content-Transfer-Encoding: base64".$this->eol.
                    "Content-Disposition: inline".$this->eol.$this->eol.
                    "%s".
                    "--%s".$this->eol.
                    "Content-Type: text/html; charset=utf-8".$this->eol.
                    "Content-Transfer-Encoding: base64".$this->eol.
                    "Content-Disposition: inline".$this->eol.$this->eol.
                    "%s".
                    "--%s--".
                    "",
                    $boundary,
                    $this->getPlainContent(),
                    $boundary,
                    $this->getHTMLContent(),
                    $boundary
                );

                $this->procCidAttachments();
                $this->procAttachments();

                $headers = sprintf(
                    "From: %s".$this->eol.
                    "%s".
                    "%s".
                    "%s".
                    "%s".
                    "MIME-Version: 1.0".$this->eol."",
                    $this->getSender(),
                    $this->messageId?("Message-ID: <".$this->messageId.">".$this->eol):"",
                    $this->replyTo?("Reply-To: <".$this->replyTo.">".$this->eol):"",
                    $this->bcc?("Bcc: ".$this->bcc.$this->eol):"",
                    $this->references?("References: <".$this->references.">".$this->eol."In-Reply-To: <".$this->references.">".$this->eol):""
                );
                $headers .= $this->header;
       //if($this->additional_params) return mail($this->getReceiptor(), $this->getTitle(), $this->body, $headers, $this->additional_params);
       //return mail($this->getReceiptor(), $this->getTitle(), $this->body, $headers);
       
       $MAILTO = $this->receiptor_email;
       $TITLE = $this->getTitle();
       $BODY = $this->body;
       $HEADER = $headers;
       $HEADER .= "\r\nMIME-Version: 1.0\r\n";
       $HEADER .= "Content-type: text/plain; charset=euc-kr\r\nContent-Transfer-Encoding: 8bit\r\nX-Priority: 1\r\nX-MSMail-Priority: High\r\n";
       $HEADER .= "From: $this->replyTo\r\n" . "Reply-To: $this->replyTo\r\n" . "X-Mailer: PHP/" . phpversion() . "\r\nX-originating-IP: " .$_SERVER['REMOTE_ADDR']. "\r\n";
       
       $mail             = new PHPMailer();
       $mail->addCustomHeader($HEADER); 
       $mail->IsSMTP(); // telling the class to use SMTP
       $mail->IsHTML(true);
       $mail->Host       = "www.congal.net"; // SMTP server
       //$mail->SMTPDebug  = 2;                     // enables SMTP debug information (for testing)
                    // 1 = errors and messages
                    // 2 = messages only
       $mail->ContentType="text/plain";
       $mail->CharSet   = "utf-8";
       $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   = "pence@gmail.com";  // GMAIL username
       $mail->Password   = "123123";            // GMAIL password
       
       $mail->SetFrom(' pence@gmail.com ', 'pence');
       
       $mail->AddReplyTo("pence@naver.com", "pence");
       
       $mail->Subject    = $TITLE;
       
       $mail->AltBody    = $BODY; // optional, comment out and test
       
       $mail->MsgHTML($BODY);
       
       $address = $MAILTO;
       $mail->AddAddress($address, $address);
       
       $mail->Send();

    }

       ㄷ)서버에서 465포트 열어 놓았고    

[[[[ 위에 팁으로 구성하셨는데 에러가 발생한다고 한다면 다음사항을 체크해보시길 바랍니다.

1. OPENSSL 이 활성화 되었는지 ? =>phpinfo()에서 확인해보시면 됩니다.
2. 465포트가 열렸는지?  -->2008서버 R2 에서 465포트 열어둠
3. 지메일 계정의 IMAP,POP 설정이 활성화 되었는지?  -->사용으로 설정수정함
4. 지메일 계정이 블록되었는지? -->무슨 말인지? 이해 못함

추가적으로...
classes/mail/Mail.class.php 상단에   --> 아래 내용 추가
require_once('PHPMailer/class.phpmailer.php'); 를 붙이면 관리자 메뉴 관리의 메뉴들이 안보이는 에러가 발생합니다.
http://www.xpressengine.com/index.php?document_srl=19277785

classes/mail/Mail.class.php 상단에
class.phpmailer.php 소스를 전부 붙여넣기 하신다음에
public $PluginDir         = 'PHPMailer/'+ ';
위에처럼 수정하시면 에러가 발생하지 않습니다. ]]]] 

-->  PHPMailer/ class.phpmailer.php 파일 내용에서 public $PluginDir항목을 찾아  public $PluginDir         = 'PHPMailer/'+ '; 수정함


그러나 파일 수정 후 저장하고, 사이트에 접속하면, HTTP500 내부서버 오류 가 출력됩니다.


어떻게 해야 할까요? 며칠째 고생입니다. XE Core 1.5.2.5 버전을입니다. 

고수님들의 도움이 절실합니다. 도와주시면 감사하겠습니다. 

글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
개미굴 사이트 맵에서 링크를 잘못건 다음에 백지현상이 일어나고 있습니다ㅠ 제발 도와주세요.. [1] 2012.06.15 by 송동우
Dolmeng 글 보기 화면에서 하단 파일 클릭시 다운로드 권한이 없을때 나오는 메시지 화면에서...  
clov 이게시판 스킨? 모듈명이 무엇인가요..? [1] file 2012.06.15 by 마음의빈자리
박하향풍선껌 통합검색을 구성하고 있는 폴더 알수 있나요 [1] 2012.06.15 by Cody
Sonya 내용직접입력시 이미지 엑박 현상. [6] 2012.06.15 by Sonya
도로독 xe에서 이미지 슬라이더를 사용하는데 8개의 게시판에서 각각독립적으로 나오개 할 수 없나요? [1] 2012.06.15 by Cody
청개굴이 데이터 이전시.. [1] 2012.06.15 by 디마인
webgori 커뮤니티 서버 구축 다양한 조언 구합니다. (OS, XE, WORDPRESS..) [1] 2012.06.15 by 디마인
Allon 모바일 레이아웃 질문입니다.  
패트릭 코어엔진 업그레이드 에러 [1] 2012.06.15 by 디마인
카이닉스 항상 자동으로 펼쳐져 있게 하는방법 알려주세요~ [1] file 2012.06.15 by 카이닉스
강유80 xe게시판 잘되던 이미지가 첨부되지 않습니다. [1] 2012.06.15 by kbj153
kbj153 파비콘 변경 및 제거,삭제 결과 입니다..(아직 난관 중..) [2] 2012.06.15 by 송동우
kbj153 파비콘 수정, 변경이 안되는 문제 다시 질문드립니다 ㅠㅠ [2] 2012.06.15 by kbj153
KTK 글작성후 30초 이내 작성 금지 [2] 2012.06.15 by 송동우
조~사 사이트에서 메일 전송이 안됨!!!!  
조~사 인증 메일 재발송 안됨/ 비번 찾기 메일 전송도 안됨  
오락실주인 소스 먼지 아시는분 !! [2] file 2012.06.15 by 오락실주인
bbongs iframe 크로스도메인 답변 부탁드립니다 ㅠ  
kbj153 XE 일반설정에서 파비콘 설정 후에 변경이 안됩니다. [6] 2012.06.15 by kbj153
이글루1 가입후 인증메일을 보냈다는 메세지가 안뜹니다! [1] 2012.06.15 by EnuX
패트릭 게시판 업데이트 방법? 계속에러  
하이투 회원레벨 관리에 관해서 [1] 2012.06.15 by 송동우
후이리 등록일 형태 변경 [1] file 2012.06.15 by 송동우
denmark 스케치북 게시판 스킨 가로크기 고정 / 정렬설정 질문.  
오락실주인 쇼셜댓글 연결문제 ~ file  
romper 쪽지 스팸 어떻게 막을방법이 없을까요? [1] 2012.06.15 by 송동우
키키킼 게시판에 익명으로 글남기고 anonymous대신 닉네임 남게 하는 방법좀 알려주세요 file  
MoTo 질문드립니다,, ㅜㅜㅜ왜이렇죠?  
키키킼 이미지 클릭 했을때 새창으로 열리지 않게, 퍼가지 못하게 하는 방법좀 알려주세요.