From c2714eaffb8f85f89a6698c17812d5131ea21f9f Mon Sep 17 00:00:00 2001 From: cyc Date: Tue, 17 Mar 2020 15:32:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=82=AE=E4=BB=B6=E5=88=B0?= =?UTF-8?q?=E8=BE=BE=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webht/third_party/dingmail/controllers/index.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/webht/third_party/dingmail/controllers/index.php b/webht/third_party/dingmail/controllers/index.php index ef0d20a3..c52a7b4f 100644 --- a/webht/third_party/dingmail/controllers/index.php +++ b/webht/third_party/dingmail/controllers/index.php @@ -236,13 +236,12 @@ class Index extends CI_Controller { } //执行邮件发送功能 - public function do_sendmail() { + public function do_sendmail($fromuser, $tomail, $subject, $mailbody) { 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; $smtpserver = "smtp.qiye.aliyun.com"; @@ -263,7 +262,7 @@ class Index extends CI_Controller { $additional_headers = ""; //设置发件人名称,名称用户可以自定义填写。 $sender = "发件人"; - $smtp->sendmail($mailto,$smtpusermail, $mailsubject, $mailbody, $mailtype, $cc, $bcc, $additional_headers, $sender, $smtpreplyto); + $smtp->sendmail($tomail,$smtpusermail, $mailsubject, $mailbody, $mailtype, $cc, $bcc, $additional_headers, $sender, $smtpreplyto); } public function do_sendmailtest() {