<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
	<channel>
				<title><![CDATA[최신글 이메일 알림 수신 안되는 현상]]></title>
		<link>https://www.cosmosfarm.com/threads/rss/document/10729</link>
		<description><![CDATA[<p>게시판 이메일 알림 필드에 이메일을 입력하고 게시판에 글 작성을 했는데, 메일이 도착하지 않고 http500 에러가 나길래, 호스팅업체 카페24에 문의해보니, 아래와 같은 답변을 받았네요.</p>

<p>메일이 정상적으로 발송된다는데, 테스트 해보니 이메일로 오지 않는데, 어떤 문제가 있는지 좀 알고 싶네요.</p>

<p> </p>

<p> </p>

<p>www폴더와 같은 루트상의 .htaccess 파일에서 아래 코드를 추가입력하여 웹페이지에서 php에러메시지가 출력되도록 설정하였습니다.</p>

<p># .htaccess<br />
php_value error_reporting 6135<br />
php_flag display_errors on<br />
 <br />
 <br />
이후 http://도메인/qna/?mod=editor 에서 글쓰기 테스트시 다음과 같은 에러메시지가 발생하였습니다.<br />
 <br />
Fatal error: Call to undefined method PHPMailer::getCustomHeaders() in /home/hosting_users/아이디/www/wp-content/plugins/contact-form-7/includes/mail.php on line 176<br />
 <br />
 <br />
해당 에러메시지와 관련하여 구글 검색시 최신 워드프레스버전에서의 phpmailer 처리 소스상 문제로 확인이 됩니다.<br />
 <br />
http://www.fahdmirza.com/2016/07/wordpress-fatal-error-call-to-undefined.html<br />
 <br />
 <br />
따라서 위 url을 참고하여 에러가 발생한  mail.php 파일의 171라인을 주석처리하였습니다.<br />
 <br />
//add_action( 'phpmailer_init', 'wpcf7_phpmailer_init' );<br />
 <br />
 <br />
이 후 http://도메인/qna/?mod=editor 에서 글쓰기 후 정상처리되었으며, 메일로그확인시 내메일@gmail.com 으로 정상발송처리된 것으로 확인됩니다.<br />
참고로 수신메일주소를 @naver.com으로 수정 후 확인시 정상수신됨을 확인하였습니다.<br />
 Oct 28 11:19:43 qmail: 1477621183.035828 new msg 195490<br />
Oct 28 11:19:43 qmail: 1477621183.035855 info msg 195490: bytes 643 from &lt;from<a href="mailto:mk2016ltd@gmail.com" target="_blank">메일주소@gmail.com</a>&gt; qp 10540 uid 2019<br />
Oct 28 11:19:43 qmail: 1477621183.036217 starting delivery 2362: msg 195490 to remote <a href="mailto:millimwp@gmail.com" target="_blank">수신메일@gmail.com</a><br />
Oct 28 11:19:43 qmail: 1477621183.036232 status: local 0/10 remote 1/20<br />
Oct 28 11:19:44 qmail: 1477621184.817440 delivery 2362: success: 74.125.204.27_accepted_message./Remote_host_said:_250_2.0.0_OK_1477621185_y82si5504794pfb.71_-_gsmtp/<br />
Oct 28 11:19:44 qmail: 1477621184.817510 status: local 0/10 remote 0/20<br />
Oct 28 11:19:44 qmail: 1477621184.817528 end msg 195490</p>
]]></description>
		<copyright>Copyright 2026, 코스모스팜</copyright>
				<item>
			<title><![CDATA[감사합니다. 덕분에 잘 해결하였습니다. ^^
]]></title>
			<link>https://www.cosmosfarm.com/threads/document/10745</link>
			<description><![CDATA[<p>감사합니다. 덕분에 잘 해결하였습니다. ^^</p>
]]></description>
			<author>구름이</author>
			<pubDate>Sat, 29 Oct 2016 05:11:44 +0000</pubDate>
			<category>KBoard</category>
		</item>
				<item>
			<title><![CDATA[워드프레스 디버그 모드를 활성화 해서 오류 메시지를 확인해보서야 할 듯합니다.

워드프레스의 wp-con...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/10735</link>
			<description><![CDATA[<p>워드프레스 디버그 모드를 활성화 해서 오류 메시지를 확인해보서야 할 듯합니다.</p>

<p>워드프레스의 wp-config.php 파일에서</p>

<p>define('WP_DEBUG', <strong>false</strong>); -&gt; define('WP_DEBUG', <strong>true</strong>);</p>

<p>이렇게 수정해주시면 디버그 모드가 활성화 됩니다.</p>

<p> </p>

<p>네이버 메일은 정상적으로 수신이 되신다면,</p>

<p>지메일에서 카페24의 서버에서 보내지는 메일을 스팸으로 인식하여 완전 차단하고 있을 수 있습니다.</p>

<p>호스팅쪽에도 문의를 해보셔야 할 듯합니다.</p>

<p> </p>

<p>WP Mail SMTP 플러그인을 사용해서 보내는 메일을 카페24 서버가 아닌 외부 메일에서 보내지도록 셋팅해보세요.</p>

<p><a href="https://ko.wordpress.org/plugins/wp-mail-smtp/" target="_blank">https://ko.wordpress.org/plugins/wp-mail-smtp/</a></p>

<p> </p>

<p>위 플러그인 사용으로 인해서 KBoard 쪽에 문제가 있다면,</p>

<p>/kboard/class/KBMail.class.php 파일을 수정해주세요.</p>

<p>아래 페이지에 최신 코드가 있으니 Raw 버튼을 클릭해서 소스코드를 복사해서 붙혀넣기 해주세요.</p>

<p><a href="https://github.com/cosmosfarm/KBoard-wordpress-plugin/blob/master/plugins/kboard/class/KBMail.class.php" target="_blank">https://github.com/cosmosfarm/KBoard-wordpress-plugin/blob/master/plugins/kboard/class/KBMail.class.php</a></p>
]]></description>
			<author>스레드봇</author>
			<pubDate>Fri, 28 Oct 2016 06:04:39 +0000</pubDate>
			<category>KBoard</category>
		</item>
			</channel>
</rss>