{"id":8378,"date":"2024-04-25T19:01:01","date_gmt":"2024-04-25T11:01:01","guid":{"rendered":""},"modified":"2024-04-25T19:01:01","modified_gmt":"2024-04-25T11:01:01","slug":"php \u7ed3\u5408 PHPMailer \u6279\u91cf\u53d1\u9001\u90ae\u4ef6\u3002","status":"publish","type":"post","link":"https:\/\/mushiming.com\/8378.html","title":{"rendered":"php \u7ed3\u5408 PHPMailer \u6279\u91cf\u53d1\u9001\u90ae\u4ef6\u3002"},"content":{"rendered":"

1\u3001\u4e0b\u8f7d PHPMailer\uff1a https:\/\/sourceforge.net\/projects\/phpmailer\/<\/p>\n

2\u3001\u6587\u4ef6\u653e\u5230\u9879\u76ee\u4e2d\uff0c\u52a0\u8f7d\u5f15\u5165\u5230\u6587\u4ef6\u4e2d\u3002<\/p>\n

3\u3001php\u4ee3\u7801\u3002<\/p>\n

<?php\n\/**\n * Created by PhpStorm.\n * User: jackhhy\n * Date: 2019\/2\/14-10:44\n * FileName: MaileController.php\n *\/\n\nclass MaileController extends Common\n{\n\n    public function __construct()\n    {\n        parent::__construct();\n    }\n\n\n    \/**\n     * @throws Exception\n     * \u53d1\u9001\u90ae\u4ef6\n     *\/\n    public function indexAction(){\n        if ($_POST){\n            \/\/\u90ae\u7bb1\u9a8c\u8bc1\u8868\u8fbe\u5f0f\n            $regex=\"\/([a-z0-9]*[-_.]?[a-z0-9]+)*@([a-z0-9]*[-_]?[a-z0-9]+)+[.][a-z]{2,3}([.][a-z]{2})?\/i\";\n            $data=$_POST;\n            $adre=@explode(\",\",$data['maile']);\n            \/\/\u53bb\u9664\u7a7a\u503c\n            $cont=$this->array_remove_empty($adre);\n            \/\/\n            if (count($cont) >1){\n                $arr=[];\n                foreach ($cont as $v){\n                    \/\/\u9a8c\u8bc1\u90ae\u7bb1\n                    $result = preg_match($regex,$v);\n                    if (!$result){\n                        unset($v);\n                    }else{\n                        $arr[]=$v;\n                    }\n                }\n               $address=$arr;\n            }else{\n                $result = preg_match($regex,$cont[0]);\n                if (!$result){\n                    exit(error(\"\u63a5\u6536\u4eba\u90ae\u7bb1\u6709\u8bef\"));\n                }\n                $address=$cont[0];\n            }\n            \/\/\u53d1\u9001\u90ae\u4ef6\n           $res=$this->Send_maile($address,$data['content'],$data['subject'],$data['nickname'],$data['username'],$data['password']);\n            if ($res['error']==0){\n                exit(success(\"\u53d1\u9001\u6210\u529f\"));\n            }else{\n                exit(error(\"\u53d1\u9001\u5931\u8d25-\".$res['message']));\n            }\n        }\n\n        $this->view->display('dan\/maile');\n    }\n\n\n    \/**\n     * @param $address\n     * @param $content\n     * @param $nick\n     * @param $user\n     * @param $pass\n     * @throws Exception\n     *\/\n    private function Send_maile($address,$content,$sub,$nick,$user,$pass){\n        require_once APP_ROOT.\"\/extensions\/mailer\/PHPMailer.php\";\n        require_once APP_ROOT.\"\/extensions\/mailer\/SMTP.php\";\n        \/\/ \u5b9e\u4f8b\u5316PHPMailer\u6838\u5fc3\u7c7b\n        $mail = new PHPMailer();\n       \/\/ \u662f\u5426\u542f\u7528smtp\u7684debug\u8fdb\u884c\u8c03\u8bd5 \u5f00\u53d1\u73af\u5883\u5efa\u8bae\u5f00\u542f \u751f\u4ea7\u73af\u5883\u6ce8\u91ca\u6389\u5373\u53ef \u9ed8\u8ba4\u5173\u95eddebug\u8c03\u8bd5\u6a21\u5f0f\n        $mail->SMTPDebug = 0;\n        $mail->CharSet = \"UTF-8\";\/\/\u8bbe\u7f6e\u4fe1\u606f\u7684\u7f16\u7801\u7c7b\u578b\n\/\/ \u4f7f\u7528smtp\u9274\u6743\u65b9\u5f0f\u53d1\u9001\u90ae\u4ef6\n        $mail->isSMTP();\n\/\/ smtp\u9700\u8981\u9274\u6743 \u8fd9\u4e2a\u5fc5\u987b\u662ftrue\n        $mail->SMTPAuth = true;\n\/\/ \u94fe\u63a5qq\u57df\u540d\u90ae\u7bb1\u7684\u670d\u52a1\u5668\u5730\u5740\n        $mail->Host = 'smtp.qq.com';\n\/\/ \u8bbe\u7f6e\u4f7f\u7528ssl\u52a0\u5bc6\u65b9\u5f0f\u767b\u5f55\u9274\u6743\n        $mail->SMTPSecure = 'ssl';\n\/\/ \u8bbe\u7f6essl\u8fde\u63a5smtp\u670d\u52a1\u5668\u7684\u8fdc\u7a0b\u670d\u52a1\u5668\u7aef\u53e3\u53f7\n        $mail->Port = 465;\n\/\/ \u8bbe\u7f6e\u53d1\u4ef6\u4eba\u6635\u79f0 \u663e\u793a\u5728\u6536\u4ef6\u4eba\u90ae\u4ef6\u7684\u53d1\u4ef6\u4eba\u90ae\u7bb1\u5730\u5740\u524d\u7684\u53d1\u4ef6\u4eba\u59d3\u540d\n        $mail->FromName = $nick;\n\/\/ smtp\u767b\u5f55\u7684\u8d26\u53f7 QQ\u90ae\u7bb1\u5373\u53ef\n        $mail->Username = $user;\n\/\/ smtp\u767b\u5f55\u7684\u5bc6\u7801 \u4f7f\u7528\u751f\u6210\u7684\u6388\u6743\u7801\n        $mail->Password = $pass;\n\/\/ \u8bbe\u7f6e\u53d1\u4ef6\u4eba\u90ae\u7bb1\u5730\u5740 \u540c\u767b\u5f55\u8d26\u53f7\n        $mail->From =$user;\n\/\/ \u90ae\u4ef6\u6b63\u6587\u662f\u5426\u4e3ahtml\u7f16\u7801 \u6ce8\u610f\u6b64\u5904\u662f\u4e00\u4e2a\u65b9\u6cd5\n        $mail->isHTML(true);\n\/\/ \u8bbe\u7f6e\u6536\u4ef6\u4eba\u90ae\u7bb1\u5730\u5740\n        if (is_array($address)){\n            foreach ($address as $v){\n                $mail->addAddress($v);\n            }\n        }else{\n            $mail->addAddress($address);\n        }\n\/\/ \u6dfb\u52a0\u8be5\u90ae\u4ef6\u7684\u4e3b\u9898\n        $mail->Subject = $sub;\n\/\/ \u6dfb\u52a0\u90ae\u4ef6\u6b63\u6587\n        $mail->Body =$content;\n\/\/ \u4e3a\u8be5\u90ae\u4ef6\u6dfb\u52a0\u9644\u4ef6\n      \/\/  $mail->addAttachment('.\/zhou.txt');\n\/\/ \u53d1\u9001\u90ae\u4ef6 \u8fd4\u56de\u72b6\u6001\n        $status = $mail->send();\n        if ($status) {\n            return array(\"error\"=>0);\n        }else{\n            return array(\"error\"=>1,\"message\"=>$mail->ErrorInfo);\n        }\n    }\n\n    \/**\n     * @param $txtfile\n     * @return array|string\n     * \u9010\u884c\u8bfb\u53d6TXT\u6587\u4ef6\n     *\/\n    private function getTxtcontent($txtfile){\n        $file = @fopen($txtfile,'r');\n        $content = array();\n        if(!$file){\n            return 'file open fail';\n        }else{\n            $i = 0;\n            while (!feof($file)){\n                $content[$i] = mb_convert_encoding(fgets($file),\"UTF-8\",\"GBK,ASCII,ANSI,UTF-8\");\n                $i++ ;\n            }\n            fclose($file);\n            $content = $this->array_remove_empty($content); \/\/\u6570\u7ec4\u53bb\u7a7a\n        }\n        $str=@implode(\",\",$content);\n        return $str;\n    }\n\n\n\n    \/**\n     * \u65b9\u6cd5\u5e93-\u6570\u7ec4\u53bb\u9664\u7a7a\u503c\n     * @param string $num  \u6570\u503c\n     * @return string\n     *\/\n    private function array_remove_empty(&$arr, $trim = true) {\n        if (!is_array($arr)) return false;\n        foreach($arr as $key => $value){\n            if (is_array($value)) {\n                self::array_remove_empty($arr[$key]);\n            } else {\n                $value = ($trim == true) ? trim($value) : $value;\n                if (empty($value) || $value==\"\") {\n                    unset($arr[$key]);\n                } else {\n                    $arr[$key] = $value;\n                }\n            }\n        }\n        return $arr;\n    }\n\n\n\n    \/**\n     * \u4e0a\u4f20\u6587\u4ef6\n     *\/\n    public function fileuploadAction(){\n        $root_url =  'uploadfiles\/maile\/';\n        \/\/p($_FILES);\n        if (!is_uploaded_file($_FILES['file']['tmp_name']))\n            return array('code'=>0,'msg'=>'\u6587\u4ef6\u9519\u8bef');\n        $root_url.=date('Ymd').'\/';\n        if (!is_dir($root_url)) {\n            mkdir($root_url,0777, true);\n        }\n        $ext = pathinfo($_FILES['file']['name']);\n        $num=\"txt_\";\n        $pa=file_list::get_file_list($root_url);\n        $na=count($pa) + 1;\n        if ($na<10){\n            $name=$num.'000'.$na;\n        }elseif($na<100){\n            $name=$num.'00'.$na;\n        }elseif($na<1000){\n            $name=$num.'0'.$na;\n        }else{\n            $name=$num.$na;\n        }\n        $n=$root_url.$name.\".\".$ext['extension'];\n        $result=move_uploaded_file($_FILES['file']['tmp_name'],$n);\n        if ($result){\n            $str=$this->getTxtcontent($n);\n           exit(json_encode(array('code'=>200,'msg'=>'\u5bfc\u5165\u6210\u529f','path'=>$n,'str'=>$str)));\n        }else{\n            exit(json_encode(array('code'=>0,'msg'=>'\u5bfc\u5165\u5931\u8d25')));\n        }\n    }\n\n\n\n}<\/code><\/pre>\n

4\u3001\u524d\u7aef\u9875\u9762\u4ee3\u7801\u3002<\/p>\n

<!DOCTYPE html>\n<html>\n\n\t<head>\n\t\t<meta charset=\"UTF-8\">\n\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0\">\n\t\t<title><\/title>\n\t\t<script src=\"{SITE_THEME}dan\/js\/jquery.min.js\" type=\"text\/javascript\" charset=\"utf-8\"><\/script>\n\t\t<script src=\"{SITE_THEME}dan\/layui\/layui.js\" type=\"text\/javascript\" charset=\"utf-8\"><\/script>\n\t\t<link rel=\"stylesheet\" type=\"text\/css\" href=\"{SITE_THEME}dan\/layui\/css\/layui.css\" \/>\n\t\t\n\t<\/head>\n\n\t<body>\n\n\t\t<div style=\"padding: 20px; background-color: #F2F2F2;\">\n\t\t\t<div class=\"layui-row layui-col-space15\">\n\n\t\t\t\t<form class=\"layui-form\" action=\"\">\n\n\t\t\t\t\t<div class=\"layui-col-md8 layui-col-md-offset2\">\n\n\t\t\t\t\t\t<!--<div class=\"layui-card\">\n\t\t\t\t\t\t\t<img src=\"{SITE_THEME}fenxi\/plan\/head.png\" style=\"margin: 0; width: 100%; \" \/>\n\t\t\t\t\t\t<\/div>\n-->\n\t\t\t\t\t\t<div class=\"layui-card\">\n\t\t\t\t\t\t\t<div class=\"layui-card-header\" style=\"background-color: rgb(190,26,33); color: white;\">\u90ae\u7bb1\u6279\u91cf\u53d1\u9001<\/div>\n\t\t\t\t\t\t\t<div class=\"layui-card-body\">\n\t\t\t\t\t\t\t\t<form class=\"layui-form\" action=\"\" lay-filter=\"component-form-element\">\n\t\t\t\t\t\t\t\t\t<div class=\"layui-row layui-col-space10 layui-form-item\">\n\n\t\t\t\t\t\t\t\t\t\t<div class=\"layui-form-item \">\n\t\t\t\t\t\t\t\t\t\t\t<label class=\"layui-form-label\">\u767b\u5f55\u8d26\u53f7\uff1a<\/label>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"layui-input-inline\">\n\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" name=\"username\" lay-verify=\"required|email\" value=\"\" autocomplete=\"off\" class=\"layui-input\">\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t  <div class=\"layui-form-mid layui-word-aux\">QQ\u90ae\u7bb1\u8bbe\u6743\u767b\u5f55\u8d26\u53f7<\/div>\n\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"layui-form-item \">\n\t\t\t\t\t\t\t\t\t\t\t<label class=\"layui-form-label\">\u767b\u5f55\u5bc6\u7801\uff1a<\/label>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"layui-input-inline\">\n\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"password\" name=\"password\" lay-verify=\"required\" value=\"\" autocomplete=\"off\" class=\"layui-input\">\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t  <div class=\"layui-form-mid layui-word-aux\">\u6388\u6743\u767b\u5f55\u7684\u5bc6\u7801<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"layui-form-item \">\n\t\t\t\t\t\t\t\t\t\t\t<label class=\"layui-form-label\">SMPT\uff1a<\/label>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"layui-input-inline\">\n\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" readonly=\"\" value=\"smtp.qq.com\" autocomplete=\"off\" class=\"layui-input\">\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t  <div class=\"layui-form-mid layui-word-aux\">qq\u57df\u540d\u90ae\u7bb1\u7684\u670d\u52a1\u5668\u5730\u5740(\u9ed8\u8ba4\uff0c\u65e0\u6cd5\u66f4\u6539)<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"layui-form-item \">\n\t\t\t\t\t\t\t\t\t\t\t<label class=\"layui-form-label\">\u6635\u79f0\uff1a<\/label>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"layui-input-inline\">\n\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" name=\"nickname\" lay-verify=\"required\" value=\"\" autocomplete=\"off\" class=\"layui-input\">\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t  <div class=\"layui-form-mid layui-word-aux\">\u53d1\u4ef6\u4eba\u7684\u6635\u79f0<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"layui-form-item \">\n\t\t\t\t\t\t\t\t\t\t\t<label class=\"layui-form-label\">\u90ae\u4ef6\u6807\u9898\uff1a<\/label>\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"layui-input-block\">\n\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" name=\"subject\" lay-verify=\"required\" placeholder=\"\u8bf7\u586b\u5199\u90ae\u4ef6\u6807\u9898\" autocomplete=\"off\" class=\"layui-input\">\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t<div class=\"layui-form-item\">\n\t\t\t\t\t\t\t\t\t\t<label class=\"layui-form-label\">\u90ae\u4ef6\u5185\u5bb9\uff1a<\/label>\n\t\t\t\t\t\t\t\t\t\t<div class=\"layui-input-block\">\n\t\t\t\t\t\t\t\t\t\t\t   <textarea class=\"layui-textarea\" name=\"content\" placeholder=\"\u90ae\u4ef6\u5185\u5bb9\u5fc5\u987b\u586b\u5199\" lay-verify=\"content\"   id=\"LAY_demo1\" ><\/textarea>\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t <div class=\"layui-form-item\">\n                                    <label class=\"layui-form-label\">\u5bfc\u5165\u90ae\u7bb1\uff1a<\/label>\n                                  \n                                    <button style=\"\" type=\"button\" class=\"layui-btn\" id=\"test3\">\u4e0a\u4f20<\/button>&nbsp;&nbsp;&nbsp;\n                                    <font color=\"red\">\u6ce8\u91ca\uff1a\u6bcf\u4e2a\u90ae\u7bb1\u4e00\u884c(\u5c11\u91cf\u4e0d\u5fc5\u5bfc\u5165)<\/font>\n                                    <div class=\"layui-form-mid layui-word-aux\">*\u53ea\u5141\u8bb8\u4e0a\u4f20TXT\u6587\u4ef6<\/div>\n                                \n                                <\/div>\n\n\t\t\t\t\t\t\t\t\t<div class=\"layui-form-item\">\n\t\t\t\t\t\t\t\t\t\t<label class=\"layui-form-label\">\u90ae\u7bb1\uff1a<\/label>\n\t\t\t\t\t\t\t\t\t\t<div class=\"layui-input-block\">\n\t\t\t\t\t\t\t\t\t\t\t<textarea name=\"maile\" id=\"xin\" class=\"layui-textarea\" lay-verify=\"required\" placeholder=\"\u591a\u4e2a\u90ae\u7bb1\u7528\u82f1\u6587,\u9694\u5f00\"><\/textarea>\n\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t<div class=\"layui-form-item\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"layui-input-block\">\n\t\t\t\t\t\t\t\t\t\t\t<button class=\"layui-btn\" lay-submit=\"\" lay-filter=\"demo1\" >\u7acb\u5373\u53d1\u9001<\/button>\n\t\t\t\t\t\t\t\t\t\t\t<button type=\"reset\" class=\"layui-btn layui-btn-primary\">\u91cd\u7f6e<\/button>\n\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<\/form>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\n\t\t\t\t\t<!--\t<div class=\"layui-card\">\n\t\t\t\t\t\t\t<img src=\"{SITE_THEME}lun\/plan\/foot.png\" style=\"margin: 0; width: 100%; \" \/>\n\t\t\t\t\t\t<\/div>-->\n\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/form>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\n\t\t\n\t\t<script type=\"text\/javascript\">\n\t\t\tlayui.use(['form', 'element', 'layer', 'layedit','upload'], function() {\n\t\t\t\tvar element = layui.element;\n\t\t\t\tvar layer = layui.layer;\n\t\t\t\tvar form = layui.form;\n\t\t\t\tvar jq = layui.$;\n\t\t\t\t var layedit=layui.layedit;\n\t\t\t    var upload=layui.upload;\n\t\t\t\tform.render();\n\n\n\n \/\/\u81ea\u5b9a\u4e49\u5de5\u5177\u680f\n            var demo1s= layedit.build('LAY_demo1', {\n                tool: ['strong','italic','underline','del','link', 'unlink', '|', 'left', 'center', 'right']\n                ,height: 150\n            });\n\n         \n            \/\/\u81ea\u5b9a\u4e49\u9a8c\u8bc1\u89c4\u5219\n            form.verify({\n                content: function(value){\n                    layedit.sync(demo1s);\n                },\n             \n\n            });\n\n\n\n  \/\/\u6307\u5b9a\u5141\u8bb8\u4e0a\u4f20\u7684\u6587\u4ef6\u7c7b\u578b\n            upload.render({\n                elem: '#test3'\n                ,url: \"{url('maile\/fileupload')}\"\n                ,accept: 'file' \/\/\u666e\u901a\u6587\u4ef6\n                ,exts: 'txt'\n                , before: function (input) {\n                    loading = layer.load(2, {\n                        shade: [0.2, '#000'] \/\/0.2\u900f\u660e\u5ea6\u7684\u767d\u8272\u80cc\u666f\n                    });\n                }\n                ,done: function(res){\n                    layer.close(loading);\n                    if (res.code==200) {\n                        layer.msg(res.msg, {icon: 1, time: 1000},function () {\n                            jq(\"#xin\").val(res.str);\n                        });\n                    }else {\n                        layer.msg(res.msg, {icon: 2, time: 1000});\n                    }\n                    \/\/console.log(res)\n                }\n                , error: function () {\n                    layer.close(loading);\n                    layer.msg('\u7f51\u7edc\u9519\u8bef',{icon:2,time:1500});\n                }\n            });\n\n\n\n\t\t\t\t\/\/\u76d1\u542c\u63d0\u4ea4\n\t\t\t\tform.on('submit(demo1)', function(data) {\n\t\t\t\t\tloading = layer.load(2, {\n\t\t\t\t\t\tshade: [0.2, '#000'] \/\/0.2\u900f\u660e\u5ea6\u7684\u767d\u8272\u80cc\u666f\n\t\t\t\t\t});\n\t\t\t\t\tvar param = data.field;\n\t\t\t\t\t\/\/console.log(param);\n\t\t\t\t\tjq.post(\n\t\t\t\t\t\t\"{url('maile\/index')}\",\n\t\t\t\t\t\tparam,\n\t\t\t\t\t\tfunction(data) {\n\t\t\t\t\t\t\tif(data.status == 1) {\n\t\t\t\t\t\t\t\tlayer.close(loading);\n\t\t\t\t\t\t\t\tlayer.msg(data.info, {\n\t\t\t\t\t\t\t\t\ticon: 1,\n\t\t\t\t\t\t\t\t\ttime: 1500\n\t\t\t\t\t\t\t\t}, function() {\n\t\t\t\t\t\t\t\t\tlocation.reload();\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tlayer.close(loading);\n\t\t\t\t\t\t\t\tlayer.msg(data.info, {\n\t\t\t\t\t\t\t\t\ticon: 2,\n\t\t\t\t\t\t\t\t\tanim: 6,\n\t\t\t\t\t\t\t\t\ttime: 3000\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}).error(function() {\n\t\t\t\t\t\tlayer.close(loading);\n\t\t\t\t\t\tlayer.msg('\u670d\u52a1\u5668\u9519\u8bef', {\n\t\t\t\t\t\t\ticon: 2,\n\t\t\t\t\t\t\tanim: 6,\n\t\t\t\t\t\t\ttime: 1500\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t\t\treturn false;\n\t\t\t\t});\n\n\t\t\t});\n\t\t<\/script>\n\n\t<\/body>\n\n<\/html><\/code><\/pre>\n

5\u3001\u9875\u9762\u6548\u679c\u56fe\u3002<\/p>\n

\n
\n \"php
\n \u53d1\u9001\u90ae\u4ef6\u754c\u9762
\n <\/figcaption><\/figure>\n<\/div>\n

6\u3001\u53d1\u9001\u6210\u529f\u3002<\/p>\n

\"php<\/p>\n

 <\/p>\n

                                                                                                                         \u6709\u4efb\u4f55\u95ee\u9898\u6b22\u8fce\u7559\u8a00\uff1a jackhhy520@qq.com<\/strong><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"php \u7ed3\u5408 PHPMailer \u6279\u91cf\u53d1\u9001\u90ae\u4ef6\u30021\u3001\u4e0b\u8f7dPHPMailer\uff1ahttps:\/\/sourceforge.net\/projects\/phpmailer\/2\u3001\u6587\u4ef6\u653e\u5230\u9879\u76ee\u4e2d\uff0c\u52a0\u8f7d...","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"_links":{"self":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/8378"}],"collection":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/comments?post=8378"}],"version-history":[{"count":0,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/8378\/revisions"}],"wp:attachment":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/media?parent=8378"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/categories?post=8378"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/tags?post=8378"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}