ECSHOP新订单邮件通知多个客服
ECSHOP默认不支持多个客服邮箱,如果能填写多个邮箱,同时处理事务,比如新订单邮件通知多个客服,会不会更高效?
/languages/zh_cn/admin/shop_config.php中添加
1 |
$_LANG['cfg_desc']['service_email'] = '多个邮箱地址请用半角逗号分隔。'; |
/flow.php中以下发送新订单提醒邮件代码
1 |
send_mail($_CFG['shop_name'], $_CFG['service_email'], $tpl['template_subject'], $content, $tpl['is_html']); |
修改为
1 2 3 4 5 |
$arrEmail = explode("," ,$_CFG['service_email']); foreach($arrEmail as $arrEmailValue) { send_mail($_CFG['shop_name'], $arrEmailValue, $tpl['template_subject'], $content, $tpl['is_html']); //发给多个客服 } |