음... 항상 테스트를 해보지 않고 답변을 달아드리기 때문에 정확한 답변인지는 잘모르니 혹 안되시면
다시 말씀을해주세요~ ;;; ^^; 귀차니즘으로인해 ㅎㅎ..
일단 질문에 보면 조건이 게시판에 관리자가 답글을 달 경우이니
skin 폴더에 write_update.skin.php 파일을 코드를 추가하시면 되겠네요
// 자신만의 코드를 넣어주세요.
이 밑에
if ($w==r&&$is_admin){
include_once("$g4[path]/lib/mailer.lib.php"); // 메일발송 lib 파일 include
댓글 1개
다시 말씀을해주세요~ ;;; ^^; 귀차니즘으로인해 ㅎㅎ..
일단 질문에 보면 조건이 게시판에 관리자가 답글을 달 경우이니
skin 폴더에 write_update.skin.php 파일을 코드를 추가하시면 되겠네요
// 자신만의 코드를 넣어주세요.
이 밑에
if ($w==r&&$is_admin){
include_once("$g4[path]/lib/mailer.lib.php"); // 메일발송 lib 파일 include
// 원본글 작성자의 메일주소 얻어옮
$sql = " select wr_email from $write_table where wr_id = '$write[wr_reply]' ";
$to = sql_frtch($sql); // 원본글 작성자의 메일주소
$fname = "관리자"; //보내는사람 이름
$fmail = "amdin@domain.net"; // 관리자 메일주소
$subject = $wr_subject; // 제목
$content = stripslashes($wr_content); // 내용
$type = $html; // html 체크
if ($type == 2)
{
$type = 1;
$content = preg_replace("/\n/", "<br>", $content);
}
// 파일 첨부
for ($i=1; $i<=$attach; $i++)
{
if ($_FILES["file".$i][name])
$file[] = attach_file($_FILES["file".$i][name], $_FILES["file".$i][tmp_name]);
}
mailer($fname, $fmail, $to, $subject, $content, $type, $file);
}
위 코드를 넣어주시면 될 것 같습니다. 테스트는 안해봐서 안될 수도 있어여 ㅜ_ㅜ;