글쓴이에게 메일보내기 소스 사용법 좀 알려주세요... > 질문답변

본문 바로가기

사이트 내 전체검색

뒤로가기 질문답변

글쓴이에게 메일보내기 소스 사용법 좀 알려주세요...

본문

안녕하세요? 김형우 입니다.
연후아빠님 덕분에 은혜네 하우스에 잘 묶다 왔습니다.
일정이 바빠 연락도 못드렸네요.
죄송합니다.^^

질문이 있는데요...
아래의 사용법을 모르겠습니다.
어떻게 사용하면 되는지요?
각 스킨 / write_update.skin.php 여기에 해당 스크립ㄴ트를 넣으면 되는지요?

각 스킨 / write_update.skin.php
bbs/write_update_ordermail.php 원하는데로 생성
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

////////////////////////////////////////////////
// 받을 사람의 이메일주소를 넣어주세요.

$emails[] = "$wr_email"; // 이메일주소1

// 계속 추가할 수 있습니다.
////////////////////////////////////////////////

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_name2 = "관리자";
    $wr_email2 = "[email protected]";
   
    //$subject = "'{$board[bo_subject]}' 게시판에 글이 올라왔습니다.";
    $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_ordermail.php");
    $content = ob_get_contents();
    ob_end_clean();

    foreach($emails as $email)
    {
        if ($email)
            mailer($wr_name2, $wr_email2, $email, $subject, $content, 1);
    }
}
?>
추천1

댓글목록 2

제로님의 댓글

제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 작성일

소스를
write_update.skin.php에 적용하고

bbs/write_update_mail.php 을 카피해서
bbs/write_update_ordermail.php로 바꿔보세요

제로님의 댓글의 댓글

제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 작성일

아시는 분이 운영하시는 민박집입니다..^^

전체 1,640건 1 페이지
게시물 검색
Copyright (c) 株式会社YHPLUS. All rights reserved.

사이트 정보

株式会社YHPLUS / 대표 : ZERO
〒171-0014 東京都豊島区池袋2-41-5 アーバン154 8F
050-5539-7787
오픈카카오톡 (YHPLUS) :
https://open.kakao.com/o/slfDj15d

PC 버전으로 보기