발송 발송 때 관리자 메일 주소 적용되도록 수정

This commit is contained in:
chicpro
2014-05-29 10:40:53 +09:00
parent 40b48e92b9
commit 07907c0315
4 changed files with 8 additions and 15 deletions

View File

@ -3,8 +3,6 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once(G5_LIB_PATH.'/mailer.lib.php');
$admin = get_admin('super');
$subject = $config['cf_title'].' 주문 오류 알림 메일';
if($error == 'order') {
@ -14,15 +12,15 @@ if($error == 'order') {
}
if($tno) {
$content .= '<p>KCP의 '.$od_settle_case.'는 자동 취소되었습니다.</p>';
$content .= '<p>취소 내역은 KCP 상점관리자에서 확인할 수 있습니다.</p>';
$content .= '<p>PG사의 '.$od_settle_case.'는 자동 취소되었습니다.</p>';
$content .= '<p>취소 내역은 PG사 상점관리자에서 확인할 수 있습니다.</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);
mailer($od_name, $od_email, $config['cf_admin_email'], $subject, $content, 1);
unset($error);
?>

View File

@ -3,8 +3,6 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once(G5_LIB_PATH.'/mailer.lib.php');
$admin = get_admin('super');
//------------------------------------------------------------------------------
// 운영자에게 메일보내기
//------------------------------------------------------------------------------
@ -14,7 +12,7 @@ include G5_SHOP_PATH.'/mail/orderupdate1.mail.php';
$content = ob_get_contents();
ob_end_clean();
mailer($od_name, $od_email, $admin['mb_email'], $subject, $content, 1);
mailer($od_name, $od_email, $config['cf_admin_email'], $subject, $content, 1);
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
@ -26,7 +24,7 @@ include G5_SHOP_PATH.'/mail/orderupdate2.mail.php';
$content = ob_get_contents();
ob_end_clean();
mailer($config['cf_title'], $admin['mb_email'], $od_email, $subject, $content, 1);
mailer($config['cf_admin_email_name'], $config['cf_admin_email'], $od_email, $subject, $content, 1);
//------------------------------------------------------------------------------
@ -90,7 +88,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
$content = ob_get_contents();
ob_end_clean();
mailer($config['cf_title'], $admin['mb_email'], $row['it_sell_email'], $subject, $content, 1);
mailer($config['cf_admin_email_name'], $config['cf_admin_email'], $row['it_sell_email'], $subject, $content, 1);
}
//==============================================================================
?>