게시판에 글 등록시 특정인에게 메일은 가는데 본문이 안보입니다. 정보
게시판에 글 등록시 특정인에게 메일은 가는데 본문이 안보입니다.본문
UTF-8 웹호스팅을 받고 있습니다.
아래 소스를 이용해서
특정 사용자에게 게시판 별로 메일을 받기를 원합니다.
회사 인트라넷에 활용할려고하는데요
초기에 설정하여 테스트할 때는 메일에 본문이 잘 보였는지 스킨 몇개 설치하고
다시 적용해보니
이제는 아예 메일은 오는데 제목과 본문이 아무것도 없이 빈화면으로 보입니다.
이 원인을 알고 계시다면 좀 알려주세요
네이트온 doit 입니다.
write_update.skin.php
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
////////////////////////////////////////////////
// 받을 사람의 이메일주소를 넣어주세요.
$emails[] = "*** 개인정보보호를 위한 이메일주소 노출방지 ***"; // 최성현
// 계속 추가할 수 있습니다.
////////////////////////////////////////////////
if ($w == '')
{
$row = sql_fetch("select * from $write_table where wr_id = '$wr_id'");
$wr_subject = get_text(stripslashes($row[wr_subject]));
$tmp_html = 0;
if (strstr($row[wr_option], "html1"))
$tmp_html = 1;
else if (strstr($row[wr_option], "html2"))
$tmp_html = 2;
$wr_content = conv_content(stripslashes($row[wr_content]), $tmp_html);
$wr_name = $row[wr_name];
$subject = "'{$board[bo_subject]}' 게시판에 글이 올라왔습니다.";
$link_url = "$g4[url]/$g4[bbs]/board.php?bo_table=$bo_table&wr_id=$wr_id&$qstr";
include_once("$g4[path]/lib/mailer.lib.php");
ob_start();
include_once ("./write_update_mail.php");
$content = ob_get_contents();
ob_end_clean();
foreach($emails as $email)
{
if ($email)
mailer($wr_name, $wr_email, $email, $subject, $content, 1);
}
}
?>
아래 소스를 이용해서
특정 사용자에게 게시판 별로 메일을 받기를 원합니다.
회사 인트라넷에 활용할려고하는데요
초기에 설정하여 테스트할 때는 메일에 본문이 잘 보였는지 스킨 몇개 설치하고
다시 적용해보니
이제는 아예 메일은 오는데 제목과 본문이 아무것도 없이 빈화면으로 보입니다.
이 원인을 알고 계시다면 좀 알려주세요
네이트온 doit 입니다.
write_update.skin.php
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
////////////////////////////////////////////////
// 받을 사람의 이메일주소를 넣어주세요.
$emails[] = "*** 개인정보보호를 위한 이메일주소 노출방지 ***"; // 최성현
// 계속 추가할 수 있습니다.
////////////////////////////////////////////////
if ($w == '')
{
$row = sql_fetch("select * from $write_table where wr_id = '$wr_id'");
$wr_subject = get_text(stripslashes($row[wr_subject]));
$tmp_html = 0;
if (strstr($row[wr_option], "html1"))
$tmp_html = 1;
else if (strstr($row[wr_option], "html2"))
$tmp_html = 2;
$wr_content = conv_content(stripslashes($row[wr_content]), $tmp_html);
$wr_name = $row[wr_name];
$subject = "'{$board[bo_subject]}' 게시판에 글이 올라왔습니다.";
$link_url = "$g4[url]/$g4[bbs]/board.php?bo_table=$bo_table&wr_id=$wr_id&$qstr";
include_once("$g4[path]/lib/mailer.lib.php");
ob_start();
include_once ("./write_update_mail.php");
$content = ob_get_contents();
ob_end_clean();
foreach($emails as $email)
{
if ($email)
mailer($wr_name, $wr_email, $email, $subject, $content, 1);
}
}
?>
댓글 전체