<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                [![](http://static.phpgrace.com/statics/images/downcode.png)](http://www.phpgrace.com/tools/download/12.html) # SMTP 郵件發送 ![未命名-1.png](http://www.phpgrace.com/statics/images/201804/1524451016920607.png "1524450129629598.png") ## **功能描述** mailer 類基于 phpmailer,通過簡單的配置即可完成基于 smtp 方式的郵件發送。 ## **php 擴展需求** >開啟?php_openssl?擴展 ## **部署說明** >下載 mailer.zip 解壓后將文件及文件夾直接部署到 phpGrace/tools 文件夾下。 ## **配置說明** 打開 phpGrace/tools/mailer.php,正確填寫以下配置: ~~~ private?$mailConfig?=?array( 'Host'???????=>?'smtp.exmail.qq.com',?//smtp?服務器地址? 'Port'???????=>?25,???????????????????//smtp?端口 'FromName'???=>?'phpGrace',???????????//發件人 'Username'???=>?'support@phpGrace.com',?//郵件賬戶 'Password'???=>?'******'??????????????//對應密碼 ); ~~~ ## **發送郵件代碼** ~~~ <?php class?indexController?extends?grace{ ????public?function?index(){ ????????//實例化郵件發送對象 ????????$mailer??=?new?phpGrace\tools\mailer(); ????????//收件人地址,多個添加數組元素即可 ????????$address?=?array('5213606@qq.com'); ????????//郵件標題 ????????$subject?=?'來自?phpGrace?的通知'; ????????//郵件內容 ????????$body????=?'<h2>來自?phpGrace?的通知!</h2><p>歡迎使用?phpGrace</p>'; ????????//附件【可以不設置,使用數組方式設置附件】 ????????$addAttachments?=?array('2.php',?'1.jpg'); ????????//使用send方法發送郵件 ????????//參數:1?收件人地址?2?標題?3?內容?4?附件【可選參數?默認?null】 ????????$res?????=?$mailer->send($address,?$subject,?$body,?$addAttachments); ????????echo?$res; ????} } ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看