<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
	<channel>
				<title><![CDATA[댓글작성 후 이메일 알람이 안옵니다.]]></title>
		<link>https://www.cosmosfarm.com/threads/rss/document/15354</link>
		<description><![CDATA[<p>원글 작성자에 관리자가 댓글을 달았는데 이메일 알람이 안옵니다.</p>

<p>소스 수정을 해봐도 안됩니다... 제가 잘 부족해서 그런것 같기도하구요..</p>

<p>글 작성시 알람은 잘 옵니다.</p>

<p>혹시 코스모스팜 회원관리를 써야 댓글을 쓰면 메일이 오는지...</p>

<p>플러그인 <strong>WP-Members</strong> 플러그인을 써야하는지</p>

<p>그리고 그 소스 삽입하는 것을 functions.php 어디에 추가해야 하나요?</p>

<p>맨 끝부분에 추가했습니다... ㅠ</p>
]]></description>
		<copyright>Copyright 2026, 코스모스팜</copyright>
				<item>
			<title><![CDATA[본인이 작성한 글에 본인이 댓글을 달면 이메일 알림이 전송되지 않습니다.

본인의 글에 본인이 댓글을...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/15491</link>
			<description><![CDATA[<p>본인이 작성한 글에 본인이 댓글을 달면 이메일 알림이 전송되지 않습니다.</p>

<p>본인의 글에 본인이 댓글을 달아도 이메일 알림이 전송되도록 수정해드렸습니다~^^</p>

<p>고맙습니다.</p>
]]></description>
			<author>스레드봇</author>
			<pubDate>Tue, 22 Aug 2017 08:32:34 +0000</pubDate>
			<category>KBoard</category>
		</item>
				<item>
			<title><![CDATA[안녕하세요.

위 코드를 저희가 테스트했을 땐 정상적으로 이메일이 게시글 작성자에게 발송됐습니다. (...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/15414</link>
			<description><![CDATA[<p><strong>안녕하세요.</strong></p>

<p><strong>위 코드를 저희가 테스트했을 땐 정상적으로 이메일이 게시글 작성자에게 발송됐습니다. (문제없는 코드)</strong></p>

<p><strong>게시글 작성자가 로그인한 회원이 맞는지요? </strong> 네 회원입니다. 회원(네이버메일)끼리 테스트도 했습니다. ㅠㅠ</p>

<p><strong>디버그 모드로는 별다른 에러를 확인하실 수 없었나요?</strong> 네 설치 후 확인했는데 오류 log가 없습니다.</p>

<p><strong>새글 등록 알림을 받는 관리자도 이메일은 네이버인지요? </strong>네 글쓴이는 네이버, 댓글단사람도 네이버메일입니다.</p>

<p><strong>WP Mail SMTP 플러그인을 설치해서 보내는 메일을 세팅 ? </strong> ( <a href="https://ko.wordpress.org/plugins/wp-mail-smtp/" target="_blank">https://ko.wordpress.org/plugins/wp-mail-smtp/</a> )</p>

<p>네 세팅했습니다. G메일로 세팅 후 네이버메일로 테스트 확인 시 메일이 잘 와서 다시 테스트하니 댓글은 메일이 안옵니다...ㅠ</p>

<p><strong>위 플러그인까지 세팅해보셔도 이메일이 발송되지 않는다면 저희 고객지원 쪽 이메일로 워드프레스 관리자 계정과 FTP 접속 정보를 보내주시면 점검해드리겠습니다.</strong></p>

<p><strong>고맙습니다. &gt;</strong> 정말 감사합니다!!~ 메일 발송했습니다. 감사합니다.!!!</p>
]]></description>
			<author>new</author>
			<pubDate>Mon, 21 Aug 2017 01:46:48 +0000</pubDate>
			<category>KBoard</category>
		</item>
				<item>
			<title><![CDATA[안녕하세요.

위 코드를 저희가 테스트했을 땐 정상적으로 이메일이 게시글 작성자에게 발송됐습니다. (...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/15382</link>
			<description><![CDATA[<p>안녕하세요.</p>

<p>위 코드를 저희가 테스트했을 땐 정상적으로 이메일이 게시글 작성자에게 발송됐습니다. (문제없는 코드)</p>

<p>게시글 작성자가 로그인한 회원이 맞는지요?</p>

<p>디버그 모드로는 별다른 에러를 확인하실 수 없었나요?</p>

<p>새글 등록 알림을 받는 관리자도 이메일은 네이버인지요?</p>

<p> </p>

<p>혹시 보내는 메일에 문제가 있을 수 있습니다.</p>

<p>WP Mail SMTP 플러그인을 설치해서 보내는 메일을 세팅해보세요.</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>위 플러그인까지 세팅해보셔도 이메일이 발송되지 않는다면</p>

<p>저희 고객지원 쪽 이메일로 워드프레스 관리자 계정과 FTP 접속 정보를 보내주시면 점검해드리겠습니다.</p>

<p>고맙습니다.</p>
]]></description>
			<author>스레드봇</author>
			<pubDate>Fri, 18 Aug 2017 10:16:39 +0000</pubDate>
			<category>KBoard</category>
		</item>
				<item>
			<title><![CDATA[알려주신대로 위 코드 넣었습니다...

메일이 안옵니다. 글 등록하면 메일은 오는데..댓글에 대한 메일...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/15376</link>
			<description><![CDATA[<p>알려주신대로 위 코드 넣었습니다...</p>

<p>메일이 안옵니다. 글 등록하면 메일은 오는데..댓글에 대한 메일은 오지 않습니다..ㅠ</p>

<p>어떻게 해야할까요? ㅠㅜ</p>

<p>글 작성자 메일은 네이버메일입니다.</p>
]]></description>
			<author>new</author>
			<pubDate>Fri, 18 Aug 2017 05:53:51 +0000</pubDate>
			<category>KBoard</category>
		</item>
				<item>
			<title><![CDATA[그리고

코드를 추가했을 때

홈페이지 화면이 안뜬다거나 페이지 표시가 제대로 안된다면

워드프레스 ...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/15372</link>
			<description><![CDATA[<p>그리고</p>

<p>코드를 추가했을 때</p>

<p>홈페이지 화면이 안뜬다거나 페이지 표시가 제대로 안된다면</p>

<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><a href="https://ko.wordpress.org/plugins/error-log-monitor/" target="_blank">https://ko.wordpress.org/plugins/error-log-monitor/</a></p>

<p>고맙습니다.</p>
]]></description>
			<author>스레드봇</author>
			<pubDate>Fri, 18 Aug 2017 02:29:36 +0000</pubDate>
			<category>KBoard</category>
		</item>
				<item>
			<title><![CDATA[안녕하세요.

다른 코드 대신 아래 코드만 추가해서 테스트해보세요. (새로 만든 코드는 아닙니다.)

아...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/15371</link>
			<description><![CDATA[<p>안녕하세요.</p>

<p>다른 코드 대신 아래 코드만 추가해서 테스트해보세요. (새로 만든 코드는 아닙니다.)</p>

<p>아래 코드는 게시글 작성자에게 댓글 등록 알림 메일을 보내는 코드입니다.</p>

<p>게시글 작성자가 로그인한 회원일 경우에만 이메일 알림을 받을 수 있습니다.</p>

<p>게시글 작성자가 비로그인 사용자라면 이메일 알림을 받을 수 없습니다.</p>

<pre>
<code class="language-php">add_action('kboard_comments_insert', 'my_kboard_comments_insert', 10, 2);
function my_kboard_comments_insert($insert_id, $content_uid){
	$comment = new KBComment();
	$comment-&gt;initWithUID($insert_id);
	$document = new KBContent();
	$document-&gt;initWithUID($content_uid);
	
	if($document-&gt;member_uid){
		$user = new WP_User($document-&gt;member_uid);
		
		if($user-&gt;user_email &amp;&amp; $user-&gt;ID != get_current_user_id()){
			if(!class_exists('KBMail')){
				include_once KBOARD_DIR_PATH . '/class/KBMail.class.php';
			}
			
			$url = new KBUrl();
			$mail = new KBMail();
			$mail-&gt;to = $user-&gt;user_email;
			$mail-&gt;title = "[댓글알림] {$document-&gt;title}";
			$mail-&gt;content = $comment-&gt;content;
			$mail-&gt;url = $url-&gt;getDocumentRedirect($document-&gt;uid);
			$mail-&gt;url_name = __('Go to Homepage', 'kboard');
			$mail-&gt;send();
		}
	}
}</code></pre>

<p>고맙습니다.</p>
]]></description>
			<author>스레드봇</author>
			<pubDate>Fri, 18 Aug 2017 02:27:05 +0000</pubDate>
			<category>KBoard</category>
		</item>
				<item>
			<title><![CDATA[그리고 함께 http://www.cosmosfarm.com/threads/document/11766

아래 코드를 넣으면 글 작성하면 글 ...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/15369</link>
			<description><![CDATA[<p>그리고 함께 http://www.cosmosfarm.com/threads/document/11766</p>

<p>아래 코드를 넣으면 글 작성하면 글 작성자에게 알람은 오는데.. 메일로 댓글이 달렸다는 알람은 안옵니다. ㅠ</p>

<p>add_action('kboard_comments_insert', 'my_kboard_comments_insert', 10, 2);<br />
function my_kboard_comments_insert($insert_id, $content_uid){<br />
    $comment = new KBComment();<br />
    $comment-&gt;initWithUID($insert_id);<br />
    $document = new KBContent();<br />
    $document-&gt;initWithUID($content_uid);</p>

<p>    if($document-&gt;member_uid){<br />
        $user = new WP_User($document-&gt;member_uid);</p>

<p>        if($user-&gt;user_email){<br />
            if(!class_exists('KBMail')){<br />
                include_once KBOARD_DIR_PATH . '/class/KBMail.class.php';<br />
            }<br />
                <br />
            $url = new KBUrl();<br />
            $mail = new KBMail();<br />
            $mail-&gt;to = $user-&gt;user_email;<br />
            $mail-&gt;title = "[댓글알림] {$document-&gt;title}";<br />
            $mail-&gt;content = $comment-&gt;content;<br />
            $mail-&gt;url = $url-&gt;getDocumentRedirect($document-&gt;uid);<br />
            $mail-&gt;send();<br />
        }<br />
    }<br />
}</p>

<p>------------------------------------------------------------------</p>

<p>add_action('kboard_comments_insert', 'my_kboard_comments_insert', 10, 2);<br />
function my_kboard_comments_insert($insert_id, $content_uid){<br />
    $comment = new KBComment();<br />
    $comment-&gt;initWithUID($insert_id);<br />
    $document = new KBContent();<br />
    $document-&gt;initWithUID($content_uid);</p>

<p>    if($document-&gt;member_uid){<br />
        $user = new WP_User($document-&gt;member_uid);</p>

<p>        if($user-&gt;user_email<strong> &amp;&amp; $user-&gt;ID != get_current_user_id()</strong>){<br />
            if(!class_exists('KBMail')){<br />
                include_once KBOARD_DIR_PATH . '/class/KBMail.class.php';<br />
            }</p>

<p>            $url = new KBUrl();<br />
            $mail = new KBMail();<br />
            $mail-&gt;to = $user-&gt;user_email;<br />
            $mail-&gt;title = "[댓글알림] {$document-&gt;title}";<br />
            $mail-&gt;content = $comment-&gt;content;<br />
            $mail-&gt;url = $url-&gt;getDocumentRedirect($document-&gt;uid);<br />
            $mail-&gt;send();<br />
        }<br />
    }<br />
}</p>
]]></description>
			<author>new</author>
			<pubDate>Fri, 18 Aug 2017 00:15:28 +0000</pubDate>
			<category>KBoard</category>
		</item>
				<item>
			<title><![CDATA[적용한 코드는 &amp;gt; http://www.cosmosfarm.com/threads/document/12637

아래 코드를 넣으면 워드...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/15368</link>
			<description><![CDATA[<p>적용한 코드는 &gt; http://www.cosmosfarm.com/threads/document/12637</p>

<p>아래 코드를 넣으면 워드프레스 접속이 안됩니다.</p>

<p>functions.php 제일 끝 하단에 넣었습니다.</p>

<p>add_action('kboard_comments_insert', 'my_kboard_comments_insert', 10, 2);<br />
function my_kboard_comments_insert($comment_uid, $content_uid){<br />
    $comment = new KBComment();<br />
    $comment-&gt;initWithUID($comment_uid);<br />
    $document = new KBContent();<br />
    $document-&gt;initWithUID($content_uid);<br />
    <br />
    if($comment-&gt;parent_uid){<br />
        $parent = new KBComment();<br />
        $parent-&gt;initWithUID($comment-&gt;parent_uid);<br />
        <br />
        if($parent-&gt;user_uid){<br />
            $user = new WP_User($parent-&gt;user_uid);<br />
        <br />
            if($user-&gt;user_email &amp;&amp; $user-&gt;id != get_current_user_id()){<br />
                if(!class_exists('KBMail')){<br />
                    include_once KBOARD_DIR_PATH . '/class/KBMail.class.php';<br />
                }<br />
                $url = new KBUrl();<br />
                $mail = new KBMail();<br />
                $mail-&gt;to = $user-&gt;user_email;<br />
                $mail-&gt;title = "답글이 등록 되었습니다.";<br />
                $mail-&gt;content = $comment-&gt;content;<br />
                $mail-&gt;url = $url-&gt;getDocumentRedirect($document-&gt;uid);<br />
                $mail-&gt;send();<br />
            }<br />
        }<br />
        else if($parent-&gt;option-&gt;email){<br />
            if(!class_exists('KBMail')){<br />
                include_once KBOARD_DIR_PATH . '/class/KBMail.class.php';<br />
            }<br />
            $url = new KBUrl();<br />
            $mail = new KBMail();<br />
            $mail-&gt;to = $parent-&gt;option-&gt;email;<br />
            $mail-&gt;title = "답글이 등록 되었습니다.";<br />
            $mail-&gt;content = $comment-&gt;content;<br />
            $mail-&gt;url = $url-&gt;getDocumentRedirect($document-&gt;uid);<br />
            $mail-&gt;send();<br />
        }<br />
    }<br />
}</p>
]]></description>
			<author>new</author>
			<pubDate>Fri, 18 Aug 2017 00:13:53 +0000</pubDate>
			<category>KBoard</category>
		</item>
				<item>
			<title><![CDATA[안녕하세요.

기본적으로 작성자에게 이메일 알림 기능은 없습니다. (추후 기능 추가 예정)

어떤 소스 ...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/15356</link>
			<description><![CDATA[<p>안녕하세요.</p>

<p>기본적으로 작성자에게 이메일 알림 기능은 없습니다. (추후 기능 추가 예정)</p>

<p>어떤 소스 수정을 하셨는지요?</p>

<p>functions.php 파일 하단에 추가하시는게 맞습니다.</p>

<p>커뮤니티에서 "이메일 알림"을 검색하시면 관련 자료를 찾아보실 수 있습니다.</p>

<p>수정하신 소스 내용도 알려주시겠어요?</p>

<p>고맙습니다.</p>
]]></description>
			<author>스레드봇</author>
			<pubDate>Thu, 17 Aug 2017 08:05:19 +0000</pubDate>
			<category>KBoard</category>
		</item>
			</channel>
</rss>