#291 주문오류 알림 메일 및 안내 문구 추가

This commit is contained in:
chicpro
2013-09-09 14:17:04 +09:00
parent 70391e1c2c
commit efad4e648d
4 changed files with 57 additions and 6 deletions

28
shop/ordererrormail.php Normal file
View File

@ -0,0 +1,28 @@
<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once(G4_LIB_PATH.'/mailer.lib.php');
$admin = get_admin('super');
$subject = $config['cf_title'].' 주문 오류 알림 메일';
if($error == 'order') {
$content = '<p>주문정보를 DB에 입력하는 중 오류가 발생했습니다.</p>';
} else if($error == 'status') {
$content = '<p>주문 상품의 상태를 변경하는 중 DB 오류가 발생했습니다.</p>';
}
if($tno) {
$content .= '<p>KCP의 '.$od_settle_case.'는 자동 취소되었습니다.</p>';
$content .= '<p>취소 내역은 KCP 상점관리자에서 확인할 수 있습니다.</p>';
}
$content .= '<p>오류내용</p>';
$content .= '<p>'.$sql.'</p><p>'.mysql_errno().' : '.mysql_error().'<p>error file : '.$_SERVER['PHP_SELF'].'</p>';
// 메일발송
mailer($od_name, $od_email, $admin['mb_email'], $subject, $content, 1);
unset($error);
?>