11.Nas_1


게시물 작성시 특정인에게 이메일 발송하기


  • 링크


  • 컨텐츠 정보

    • 16,623 조회
    • 1 댓글
    • 0 추천
    • 목록

    본문

    \r\n
    \r\n
    글쓴이 : miwit.gif 곱슬최씨
    \r\n
    icon_view.gif 조회 : 3,123 icon_good.gif 추천 : 6
    icon_link.gif http://g4.miwit.com [97]
    \r\n
    \r\n

    파일 : skin/board/사용중인스킨/write_update.skin.php

    코드 :
    \r\n
    \r\n
    <?
    if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
    \r\n
    ////////////////////////////////////////////////
    // 받을 사람의 이메일주소를 넣어주세요.

    $emails[] = "test@test.com"; // 이메일주소1
    $emails[] = "test2@test.com"; // 이메일주소2
    $emails[] = "test3@test.com"; // 이메일주소3
    $emails[] = "test4@test.com"; // 이메일주소4
    $emails[] = "test5@test.com"; // 이메일주소5
    $emails[] = "test6@test.com"; // 이메일주소6

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

    if ($w == '')
    {
    $row = sql_fetch("select * from $write_table where wr_id = '$wr_id'");
    \r\n
    $wr_subject = get_text(stripslashes($row[wr_subject]));
    \r\n
    $tmp_html = 0;
    if (strstr($row[wr_option], "html1"))
    $tmp_html = 1;
    else if (strstr($row[wr_option], "html2"))
    $tmp_html = 2;
    \r\n
    $wr_content = conv_content(stripslashes($row[wr_content]), $tmp_html);
    $wr_name = $row[wr_name];
    \r\n
    $subject = "'{$board[bo_subject]}' 게시판에 글이 올라왔습니다.";
    $link_url = "$g4[url]/$g4[bbs]/board.php?bo_table=$bo_table&wr_id=$wr_id&$qstr";
    \r\n

    include_once("$g4[path]/lib/mailer.lib.php");
    \r\n
    ob_start();
    include_once ("./write_update_mail.php");
    $content = ob_get_contents();
    ob_end_clean();
    \r\n
    foreach($emails as $email)
    {
    if ($email)
    mailer($wr_name, $wr_email, $email, $subject, $content, 1);
    }
    }
    ?>

    ----------------------------------------------
    Homepc.11q.kr
    ========================\n
    [이 게시물은 관리자님에 의해 2013-11-18 21:29:50 11.H_BBS에서 이동 됨]
    뷰PDF add1,add2



    관련자료

    댓글 1


    전체 1,749 / 51 페이지
    전체 1,749 / 51 페이지



    ♥간단_메모글♥


    최근글


    새댓글



    PHP 안에 HTML ☞ 홈페이지 화면갱신 시간은 ♨
    ▶ 2024-05-06 02:10:34

    오늘의 홈 현황


    • 현재 접속자♨ 211 명
    • 오늘 가입자※ 0 명
    • 어제 가입자※ 3 명
    • 주간 가입자※ 17 명
    • 오늘 방문자 737 명
    • 어제 방문자 1,923 명
    • 최대 방문자 13,042 명
    • 전체 방문자 4,306,323 명
    • 전체 게시물※ 8,556 개
    • 전체 댓글수※ 24,566 개
    • 전체 회원수 10,952 명

    QR코드


    ☞ QR코드 스캔은 kakao앱 자체 QR코드

    알림 0








    최신글↑