답변 2개
10년 전
관리자 여러명 지정하는것은 팁게시판에 검색을 하시면 나올겁니다.
이메일로 내용을 받는것이 목적이라 이렇게 해보세요.
제가 직접 만든 코드는 아니고 다른분이 만들어주신거 사용하고 있습니다.
스킨 폴더에 write_update.skin.php 파일 내용을 아래와 같이해주시면 됩니다.
</p><p><? </p><p>if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 </p><p> </p><p>//////////////////////////////////////////////// </p><p>// 게시글의 내용을 받을 사람의 이메일주소. </p><p> </p><p>$emails[] = "test@test.com"; // 이메일주소1 </p><p>$emails[] = "test2@test.com"; // 이메일주소2 </p><p>$emails[] = "test3@test.com"; // 이메일주소3 </p><p> </p><p>// 계속 추가 가능.</p><p>//////////////////////////////////////////////// </p><p> </p><p>if ($w == '') </p><p>{ </p><p> $row = sql_fetch("select * from $write_table where wr_id = '$wr_id'"); </p><p> </p><p> $wr_subject = get_text(stripslashes($row[wr_subject])); </p><p> </p><p> $tmp_html = 0; </p><p> if (strstr($row[wr_option], "html1")) </p><p> $tmp_html = 1; </p><p> else if (strstr($row[wr_option], "html2")) </p><p> $tmp_html = 2; </p><p> </p><p> $wr_content = conv_content(stripslashes($row[wr_content]), $tmp_html); </p><p> $wr_name = $row[wr_name]; </p><p> </p><p> $subject = "'{$board[bo_subject]}' 게시판에 글이 올라왔습니다."; </p><p> $link_url = "$g4[url]/$g4[bbs]/board.php?bo_table=$bo_table&wr_id=$wr_id&$qstr"; </p><p> </p><p> </p><p> include_once("$g4[path]/lib/mailer.lib.php"); </p><p> </p><p> ob_start(); </p><p> include_once ("./write_update_mail.php"); </p><p> $content = ob_get_contents(); </p><p> ob_end_clean(); </p><p> </p><p> foreach($emails as $email) </p><p> { </p><p> if ($email) </p><p> mailer($wr_name, $wr_email, $email, $subject, $content, 1); </p><p> } </p><p>} </p><p>?> </p><p><span style="color: rgb(34, 34, 34); font-family: Tahoma, 굴림; font-size: 12px; line-height: normal; background-color: rgb(255, 255, 255);">
로그인 후 평가할 수 있습니다
답변에 대한 댓글 1개
�
매드클라운
10년 전
참고자료 감사합니다! :-)
댓글을 작성하려면 로그인이 필요합니다.
10년 전
http://sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=12780&sfl=mb_id%2C1&stx=miwit&page=2">http://sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=12780&sfl=mb_id%2C1&stx=miwit&page=2
참고해보세요!
로그인 후 평가할 수 있습니다
답변에 대한 댓글 1개
�
매드클라운
10년 전
참고자료 감사합니다! :-)
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인