11.Nas_1


[zenaplus] 게시물 작성시 특정인에게 이메일 발송하기[확인 완료]




컨텐츠 정보

  • 12,839 조회
  • 2 댓글
  • 0 추천
  • 목록

본문

본내은 배추 스킨 사용시 간단하게 알림을 변경 가능 하오니 본글보다  배추스킨으로 저는 사용합니다
\r\n
=================================
\r\n
[zenaplus] 게시물 작성시 특정인에게 이메일 발송하기
\r\n
  • \r\n
  • posted at: 2011-02-05 18:49:12 by 관리자\r\n
  • HIT : 784 | 스크랩
\r\n\r\n
\r\n
\r\n
\r\n
파일 : skin/board/사용중인스킨/write_update.skin.php

코드 :
\r\n
 
\r\n
아래 내용을 제일하단에 추가하고 메일 주소 변경
\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\n[이 게시물은 관리자님에 의해 2013-06-10 09:15:54 12.H_PDS에서 이동 됨]\n
[이 게시물은 관리자님에 의해 2013-11-18 21:29:50 11.H_BBS에서 이동 됨]
뷰PDF add1,add2



관련자료

댓글 2

최고관리자님의 댓글

<DIV>'12.Home_P​DS' 게시판에 글이 올라왔습니다.</DIV>\r\n<DIV>&nbsp;받은편지함</DIV>\r\n<DIV>x</DIV>\r\n<DIV>&nbsp;최고관리자 </DIV>\r\n<DIV>&nbsp;17:39 (9분 전)</DIV>\r\n<DIV>&nbsp;나에게 </DIV>\r\n<DIV>&nbsp;DÊN÷DÊN÷s114 </DIV>\r\n<DIV>&nbsp;&nbsp;답장</DIV>\r\n<DIV>&nbsp;&nbsp;전달</DIV>\r\n<DIV>&nbsp;최고관리자</DIV>\r\n<DIV>17:39 (9분 전)<BR>DÊN÷DÊN÷s114</DIV>\r\n<DIV>최고관리자 </DIV>\r\n<DIV>&nbsp;17:39 (9분 전)<BR>ss1145에게&nbsp;</DIV>\r\n<DIV>&lt;ÊN÷ÀK&nbsp; mail.com</DIV>

최고관리자님의 댓글

<DIV>// 게시판 글등록시 이메일 수신<BR>// 받을 사람의 이메일주소를 넣어주세요.</DIV>\r\n<DIV>$emails[] = "<A href="mailto:shimss@11q.ipdisk.co.kr" target=_blank>shimss@11q.ipdisk.co.kr</A>"; // 이메일주소1<BR>$emails[] = "<A href="mailto:shimss@11q.ipdisk.co.kr" target=_blank>shimss@11q.ipdisk.co.kr</A>"; // 이메일주소2<BR>//$emails[] = "<A href="mailto:test3@test.com" target=_blank>test3@test.com</A>"; // 이메일주소3<BR>//$emails[] = "<A href="mailto:test4@test.com" target=_blank>test4@test.com</A>"; // 이메일주소4<BR>//$emails[] = "<A href="mailto:test5@test.com" target=_blank>test5@test.com</A>"; // 이메일주소5<BR>//$emails[] = "<A href="mailto:test6@test.com" target=_blank>test6@test.com</A>"; // 이메일주소6</DIV>\r\n<DIV>// 계속 추가할 수 있습니다.<BR>////////////////////////////////////////////////</DIV>\r\n<DIV>if ($w == '')<BR>{<BR>&nbsp;&nbsp;&nbsp; $row = sql_fetch("select * from $write_table where wr_id = '$wr_id'");<BR>&nbsp;<BR>&nbsp;&nbsp;&nbsp; $wr_subject = get_text(stripslashes($row[wr_subject]));<BR>&nbsp;<BR>&nbsp;&nbsp;&nbsp; $tmp_html = 0;<BR>&nbsp;&nbsp;&nbsp; if (strstr($row[wr_option], "html1"))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $tmp_html = 1;<BR>&nbsp;&nbsp;&nbsp; else if (strstr($row[wr_option], "html2"))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $tmp_html = 2;<BR>&nbsp;<BR>&nbsp;&nbsp;&nbsp; $wr_content = conv_content(stripslashes($row[wr_content]), $tmp_html);<BR>&nbsp;&nbsp;&nbsp; $wr_name = $row[wr_name];<BR>&nbsp;<BR>&nbsp;&nbsp;&nbsp; $subject = "'{$board[bo_subject]}' 게시판에 글이 올라왔습니다.";<BR>&nbsp;&nbsp;&nbsp; $link_url = "$g4[url]/$g4[bbs]/board.php?bo_table=$bo_table&amp;wr_id=$wr_id&amp;$qstr";<BR>&nbsp;</DIV>\r\n<DIV>&nbsp;&nbsp;&nbsp; include_once("$g4[path]/lib/mailer.lib.php");<BR>&nbsp;<BR>&nbsp;&nbsp;&nbsp; ob_start();<BR>&nbsp;&nbsp;&nbsp; include_once ("./write_update_mail.php");<BR>&nbsp;&nbsp;&nbsp; $content = ob_get_contents();<BR>&nbsp;&nbsp;&nbsp; ob_end_clean();<BR>&nbsp;<BR>&nbsp;&nbsp;&nbsp; foreach($emails as $email)<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ($email)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mailer($wr_name, $wr_email, $email, $subject, $content, 1);<BR>&nbsp;&nbsp;&nbsp; }<BR>}<BR></DIV>


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



♥간단_메모글♥


최근글


새댓글



PHP 안에 HTML ☞ 홈페이지 화면갱신 시간은 ♨
▶ 2024-05-18 19:57:06

오늘의 홈 현황


  • 현재 접속자♨ 72 명
  • 오늘 가입자※ 2 명
  • 어제 가입자※ 6 명
  • 주간 가입자※ 13 명
  • 오늘 방문자 1,784 명
  • 어제 방문자 1,667 명
  • 최대 방문자 13,042 명
  • 전체 방문자 4,329,796 명
  • 전체 게시물※ 8,576 개
  • 전체 댓글수※ 24,624 개
  • 전체 회원수 10,975 명

QR코드


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

알림 0








최신글↑