",$content); $replyto = $_SESSION['user_infos']['email'];//发件人邮箱地址 $to = '';//收件人地址 $customer_list = $admin->selesctCustomer("where uid='$uid'"); foreach($customer_list as $list){ $to .= $list['email'].';'; } $to = trim($to,';'); $params = array( 'apiUser' => $api_user, 'apiKey' => $api_key, 'to' => $to, 'from' => $from, 'subject' => $subject, 'html' => $content, 'replyto' => $replyto ); $result = make_curl($post_url,$params); //插入 普通邮件发送日志表 $params['uid'] = $uid; $params['message'] = $result['message']; $params['time'] = time(); $insert_log = $admin->inserEmail1Log($params); $info = $result['message']; header("Location:/?a=send_email1_admin&m=index&info=$info"); exit(); }else{ $info = "邮件标题、邮件内容为必填项,请填写完整!"; } } $this->assign('info',$info); $this->display("index.html"); } // class end } ?>