From d7b2b944a54b55f74df8f21f7c60b20a0402fb93 Mon Sep 17 00:00:00 2001 From: cyc Date: Tue, 17 Mar 2020 15:20:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9post=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webht/third_party/dingmail/controllers/index.php | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/webht/third_party/dingmail/controllers/index.php b/webht/third_party/dingmail/controllers/index.php index 7436b5ad..ef0d20a3 100644 --- a/webht/third_party/dingmail/controllers/index.php +++ b/webht/third_party/dingmail/controllers/index.php @@ -155,8 +155,13 @@ class Index extends CI_Controller { } //提交到其他服务器发送 - $url = 'https://cht.mycht.cn/webht.php/apps/dingmail/index/do_sendmail/'.$fromuser.'/'.$tomail.'/'.$subject.'/'.$body; - $flag = $this->get_http($url); + $url = 'https://cht.mycht.cn/webht.php/apps/dingmail/index/do_sendmail/'; + $post_data = array(); + $post_data['fromuser'] = $fromuser; + $post_data['tomail'] = $tomail; + $post_data['subject'] = $subject; + $post_data['body'] = $body; + $flag = $this->get_http($url,$post_data); if (!$flag) { $result = 0; //"邮件发送有误: " . $mail->ErrorInfo; @@ -231,8 +236,12 @@ class Index extends CI_Controller { } //执行邮件发送功能 - public function do_sendmail($fromuser, $tomail, $subject, $mailbody) { + public function do_sendmail() { require 'email.class.php'; + $fromuser = $this->input->get_post('fromuser'); + $tomail = $this->input->get_post('tomail'); + $subject = $this->input->get_post('subject'); + $mailbody = $this->input->get_post('mailbody'); $mailto = $tomail; $mailsubject = $subject; $mailbody = $mailbody;