글 등록시 메일 발송
본문
write_update.skin.php 에서
if($w == "") {
include_once(G5_LIB_PATH.'/mailer.lib.php');
$warr = array( ''=>'입력', 'u'=>'수정', 'r'=>'답변', 'c'=>'코멘트', 'cu'=>'코멘트 수정' );
$str = $warr[$w];
$subject = '['.$config['cf_title'].'] '.$board['bo_subject'].' 게시판에 '.$str.'글이 올라왔습니다.';
$tmp_html = 0;
if (strstr($html, 'html1'))
$tmp_html = 1;
else if (strstr($html, 'html2'))
$tmp_html = 2;
$wr_content = conv_content(conv_unescape_nl(stripslashes($wr_content)), $tmp_html);
$wr_subject = get_text(stripslashes($wr_subject));
ob_start();
include_once ('./write_update_mail2.php');
$content = ob_get_contents();
ob_end_clean();
mailer("제보합니다", "*** 개인정보보호를 위한 이메일주소 노출방지 ***", $config['cf_admin_email'], $subject, $content, 1);
$send_mail_list = array($config['cf_1']);
foreach($send_mail_list as $k => $v) {
mailer("제보합니다", "*** 개인정보보호를 위한 이메일주소 노출방지 ***", $v, $subject, $content, 1);
}
}//endif;
이렇게 작업이 되어 있습니다.
관리자 페이지에서 설정한 메일로 가게 되어 있는데 메일 받을 사람을 한명 더 추가하려면 어떻게 해야 할까요? 도와주시면 정말 감사드리겠습니다.
답변 1
현재위소스를 보니 기능은 되어있네요.
관리자모드에서 환경설정 -> 기본환경설정 -> 맨밑으로내리면 여분필드1 값 설정에 메일보낼사람들의 이메일을 입력해주세요 여러명일경우 콤마를붙여주세요. ex) test1@네이버.com,test2@네이트.com
입력후 저장해주시고 해당 위 파일소스에서
$send_mail_list = array($config['cf_1']);
이부분을
$send_mail_list = explode(',',$config['cf_1']);
이렇게바꿔주세요.