묻고답하기

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 남기남
대빵수달 위젯 글씨색 변경 관련 ...(파일첨부합니다..) [5] file 2008.07.20 by 대빵수달
박수호865 위젯의 기능에 관하여 - 각 게시판의 공지만을 뽑아내거나, 각 게시판의 특정 카테고리만을 선택하여 보여주는 위젯?  
브람쓰 도메인을 다른 홈페이지 공간에서 불러쓸때 주소고정하는 방법 질문요.  
브람쓰 게시글 중 첨부파일 단체로 올리기 가능한가요?  
블랙니발 xe관리자정보 입력시.... [1] 2008.07.20 by 비나무
이쁜PS 위젯생성시 여백이나 사이즈 [1] 2008.07.20 by 비나무
racer69 텍스트에디터와 파일 첨부란이 사라졌네요... [7] file 2008.07.20 by 디따마니
hazeal 페이지 수정이 안됩니다. [2] 2008.07.20 by hazeal
우냠냠 추천버튼 삽입하려면 어떤곳에 넣어야하나요 [1] 2008.07.20 by 비나무
러브산 0.5로 업그레이드 후에 게시판 하나가 사라졌습니다  
카니엘 이미지 카운터에 Total을 보이고싶습니다.  
김현중405 레이아웃 저장 문제 문의 드립니다. [1] 2008.07.19 by 백성찬
뒷뜰에핀행복 105 로 업버전후 [3] 2008.07.19 by 뒷뜰에핀행복
catsby.myid.net 이런거 어떻게 하는건가요.. 고수님들... [3] file 2008.07.19 by 토니박스
안전군기 권한에 따라 드래그 가능 불가능 설정을 할 수 있을까요? [1] 2008.07.19 by 띵야
kuyt 꼭좀 도와주세요~! 마이그레이션하고 음악파일이 재생이 안되요 [8] 2008.07.19 by kuyt
lipome 제로xe에도 메일있나요? [4] 2008.07.19 by lipome
김지원393 마루무료웹호스팅에서 ZBXE설치가안되서요 db데이터베이스 [1] file 2008.07.19 by 뽀칠이
catsby.myid.net scm 이 안되네요..  
cherub 확장변수를 제목에 ''[확장변수]제목'' 이런 식으로 나타내고싶어요. [2] 2008.07.19 by cherub
안전군기 게시글 아래 게시글 리스트 안뜨게 하는 메뉴 어디 있나요? [2] 2008.07.19 by 안전군기
지우529 putty 접속시 public html 디렉토리명이 보입니다. [2] 2008.07.19 by 지우529
고잉홈 1.0.5 업뎃후 메인의 로그인폼 메뉴버튼 무응답 [2] 2008.07.19 by 고잉홈
대빵수달 위젯 글씨색 변경 관련 다시 올립니다.. 부탁드립니다... [1] file 2008.07.19 by 비나무
토니박스 급!!ㅜㅜ상자위젯 안에 내용이 수정 안됩니다 [3] file 2008.07.19 by 전병천
제로보두 특정 메뉴에 나이걸기 가능한가요? [1] 2008.07.19 by 띵야
제로보두 메인화면 꾸미는도중에.. [4] file 2008.07.19 by 띵야
레이브 작성글보기 기능을 이용한 글쓴이의 다른게시물 보기 위젯...  
onoff 배경이미지 고정하는 방법  
heroman 게시판 상단의 주소 [1] 2008.07.19 by 백성찬