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

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

@ -143,7 +143,6 @@ if($w == '' && ($_POST['cp_sms_send'] || $_POST['cp_email_send'])) {
}
$count = count($arr_send_list);
$admin = get_admin('super');
for($i=0; $i<$count; $i++) {
if(!$arr_send_list[$i]['mb_id'])
@ -191,7 +190,7 @@ if($w == '' && ($_POST['cp_sms_send'] || $_POST['cp_email_send'])) {
$content = ob_get_contents();
ob_end_clean();
mailer($config['cf_title'], $admin['mb_email'], $email, $title, $content, 1);
mailer($config['cf_admin_email_name'], $config['cf_admin_email'], $email, $title, $content, 1);
}
}

View File

@ -103,9 +103,7 @@ if ($od_send_mail)
sql_query(" update {$g5['g5_shop_order_table']} set od_shop_memo = '$od_shop_memo' where od_id = '$od_id' ");
$admin = get_admin('super');
mailer($config['cf_title'], $admin['mb_email'], $email, $title, $content, 1);
mailer($config['cf_admin_email_name'], $config['cf_admin_email'], $email, $title, $content, 1);
}
}
?>

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