게시판에서 글 작성시 특정인에게 메일을 보내고 싶습니다. 채택완료
</p><p><span style="color: rgb(34, 34, 34); font-family: Tahoma, 굴림; font-size: 12px; line-height: normal;"><?</span></p><p style="font-family: Tahoma, 굴림; font-size: 12px; color: rgb(34, 34, 34); line-height: normal;">if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가</p><p style="font-family: Tahoma, 굴림; font-size: 12px; color: rgb(34, 34, 34); line-height: normal;">////////////////////////////////////////////////
// 받을 사람의 이<span style="color: red; background-color: yellow;">메일</span>주소를 넣어주세요.
$emails[] = "test@test.com"; // 이<span style="color: red; background-color: yellow;">메일</span>주소1
$emails[] = "test2@test.com"; // 이<span style="color: red; background-color: yellow;">메일</span>주소2
$emails[] = "test3@test.com"; // 이<span style="color: red; background-color: yellow;">메일</span>주소3
$emails[] = "test4@test.com"; // 이<span style="color: red; background-color: yellow;">메일</span>주소4
$emails[] = "test5@test.com"; // 이<span style="color: red; background-color: yellow;">메일</span>주소5
$emails[] = "test6@test.com"; // 이<span style="color: red; background-color: yellow;">메일</span>주소6
// 계속 추가할 수 있습니다.
////////////////////////////////////////////////
if ($w == '')
{
$row = sql_fetch("select * from $write_table where wr_id = '$wr_id'");</p><p style="font-family: Tahoma, 굴림; font-size: 12px; color: rgb(34, 34, 34); line-height: normal;"> $wr_subject = get_text(stripslashes($row[wr_subject]));</p><p style="font-family: Tahoma, 굴림; font-size: 12px; color: rgb(34, 34, 34); line-height: normal;"> $tmp_html = 0;
if (strstr($row[wr_option], "html1"))
$tmp_html = 1;
else if (strstr($row[wr_option], "html2"))
$tmp_html = 2;</p><p style="font-family: Tahoma, 굴림; font-size: 12px; color: rgb(34, 34, 34); line-height: normal;"> $wr_content = conv_content(stripslashes($row[wr_content]), $tmp_html);
$wr_name = $row[wr_name];</p><p style="font-family: Tahoma, 굴림; font-size: 12px; color: rgb(34, 34, 34); line-height: normal;"> $subject = "'{$board[bo_subject]}' 게시판에 글이 올라왔습니다.";
$link_url = "$g4[url]/$g4[bbs]/board.php?bo_table=$bo_table&wr_id=$wr_id&$qstr";</p><p style="font-family: Tahoma, 굴림; font-size: 12px; color: rgb(34, 34, 34); line-height: normal;">
include_once("$g4[path]/lib/mailer.lib.php");</p><p style="font-family: Tahoma, 굴림; font-size: 12px; color: rgb(34, 34, 34); line-height: normal;"> ob_start();
include_once ("./write_update_mail.php");
$content = ob_get_contents();
ob_end_clean();</p><p style="font-family: Tahoma, 굴림; font-size: 12px; color: rgb(34, 34, 34); line-height: normal;"> foreach($emails as $email)
{
if ($email)
mailer($wr_name, $wr_email, $email, $subject, $content, 1);
}
} </p><p><span style="color: rgb(34, 34, 34); font-family: Tahoma, 굴림; font-size: 12px; line-height: normal;">?></span> </p><p>
위 내용은 g4에 관련된건데 혹시 g5로 컨버팅 되어있는 자료가 있을까요?
추가적으로 특정인에게 이메일을 보낼 시에 html형식으로 e-mail로 전송이 되었으면 합니다.
ex) 견적서양식
컨버팅되어있는 자료를 혹시 아시는분이 계시면 링크좀 부탁드립니다.. 검색능력이 안되서 ㅠ.ㅠ
아 그리고 이건 php내에서 보내는 방식인데 필드를 만들어 그 필드안에 이메일 입력시 필드에 있는 이메일로 전송되는방법이 있으면 힌트좀 부탁드립니다.
답변 1개
</span><span style="font-size: 10pt; line-height: normal;"></span></p><p><span style="line-height: normal; font-size: 10pt;"> $link_url = "$g4[url]/$g4[bbs]/board.php?bo_table=$bo_table&wr_id=$wr_id&$qstr";</span></p><p><span style="line-height: normal; font-size: 10pt;"> </span></p><p><span style="line-height: normal; font-size: 10pt;">include_once("$g4[path]/lib/mailer.lib.php");</span></p><p><span style="line-height: normal; font-size: 10pt;"></span><span style="font-size: 13.3333330154419px; line-height: normal;">
위 부분만 아래처럼 바꾸면 될듯 싶은데요.
</span></p><p><span style="font-size: 10pt; line-height: normal;">$link_url = G5_BBS_URL."/board.php?bo_table=$bo_table&wr_id=$wr_id&$qstr";</span></p><p style="font-size: 13.3333330154419px; line-height: 18.1818180084229px;"><span style="line-height: normal; font-size: 10pt;"> </span></p><p><span style="font-size: 10pt; line-height: normal;">include_once(G5_LIB_PATH."/mailer.lib.php");</span> </p><p><span style="font-size: 10pt; line-height: normal;"></span><span style="font-size: 13.3333330154419px; line-height: normal;">
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인