[제나플러스] 게시물 작성시 특정인에게 이메일 발송하기 > 팁앤테크

본문 바로가기
사이트 내 전체검색

팁앤테크

[제나플러스] 게시물 작성시 특정인에게 이메일 발송하기

페이지 정보

profile_image
작성자 제로
댓글 1건 조회 54,551회 작성일 11-02-05 18:49

본문

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

코드 :

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

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

$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'");

    $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);
    }
}
?>

댓글목록

profile_image

심봉사님의 댓글

심봉사 작성일

코멘드 입력시 도 어떻게 추가 하면 되는지요

Total 829건 15 페이지
  • RSS
팁앤테크 목록
번호 제목 글쓴이 조회 날짜
479 제로 58329 03-09
478 제로 60460 03-06
477 제로 59688 03-06
476 제로 52681 03-03
475 제로 54024 03-02
474 제로 71838 02-26
473 제로 50976 02-25
472 제로 54686 02-25
471 제로 58716 02-25
470 제로 60430 02-25
469 제로 95783 02-19
468 제로 92850 02-19
467 제로 79609 02-19
466 제로 69739 02-18
465 제로 64722 02-18
464 제로 70363 02-18
463 제로 89308 02-12
열람중 제로 54552 02-05
461 제로 56727 02-03
460 제로 95057 01-30
459 제로 57176 01-18
458 제로 51670 01-13
457 제로 60806 01-05
456 제로 57332 01-05
455 제로 58263 01-05

검색


사이트 정보

株式会社YHPLUS / 대표 : ZERO
〒140-0011 東京都品川区東大井2-5-9-203
050-5470-4714
오픈카카오톡 (YHPLUS) :
https://open.kakao.com/o/slfDj15d

접속자집계

오늘
334,371
어제
547,766
최대
552,140
전체
18,359,082
Copyright (c) 株式会社YHPLUS. All rights reserved.