아이디 / 비밀번호 를 잊어버려서 찾으려고 하는데
메일이 제목만 간다는 첩보를 듣고
여기저기 찾아본결과 문제를 해결하였습니다.

일반적인 제로보드 설치경로로 설명을 드리자면

www/zbxe/classes/mail/

에 보면 Mail.class.php 라는 파일이 있는데

zbxe 1.0 정식버전 기준 63번라인에 있는 send 함수부분의

\r\n 부분을 전부 \n 으로 변경하시면 메일을 정상수신 할 수 있도록 수정이 됩니다.
(CTRL + H 를 눌러 '모두바꾸기' 하셔도 무방합니다)


        function send() {
            $boundary = '----=='.uniqid(rand(),true);

            $headers = sprintf(
                "From: %s\r\n".
                "MIME-Version: 1.0\r\n".
                "Content-Type: multipart/alternative;\r\n\tboundary=\"%s\"\r\n\r\n".
                "",
                $this->getSender(),
                $boundary
            );

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

            return mail($this->getReceiptor(), $this->getTitle(), $body, $headers);
        }

        function send() {
            $boundary = '----=='.uniqid(rand(),true);

            $headers = sprintf(
                "From: %s\n".
                "MIME-Version: 1.0\n".
                "Content-Type: multipart/alternative;\n\tboundary=\"%s\"\n\n".
                "",
                $this->getSender(),
                $boundary
            );

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

            return mail($this->getReceiptor(), $this->getTitle(), $body, $headers);
        }




 

이 글과 관련된 글들(Tag Relation)
  1. [2009/07/21] XpressEngine 최신댓글 위젯에 비밀글 댓글을 감추자 by 바나
  2. [2008/09/24] [WoW] 웃긴 아이디와 길드명 모음 [3] by 바나
  3. [2008/05/20] vana.kr은 IE7 및 Firefox를 권장합니다. by 바나
  4. [2008/05/20] Version Upgrade by 바나
v  a  n  a  :  vana.kr
-------------------------------------
If it's not FUN, Why do it?

何とかなるさ
재밌는 것만 하고 살자, 어떻게든 되겠지