<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國際加速解決方案。 廣告
                ## 發送郵件 該組件使用phpmailer的smtp進行發送的。 調用之前需要初始化一次 ~~~ $mail = Mail::init(); ~~~ [TOC] ### 設置發件人 ~~~ /** * [發件人] * @param [type] $address [郵箱地址] * @param string $name [顯示的名稱] */ public function setFrom($address, $name = '') $mail->setFrom('from@example.com', 'Mailer'); ~~~ ### 添加收件人 ~~~ /** * 添加收件人地址 * @param [type] $address [郵件地址] * @param string $name [收件人姓名,可選] */ public function addAddress($address, $name = '') $mail->addAddress('joe@example.net', 'Joe User'); // Add a recipient ~~~ ### 添加抄送 ~~~ /** * 添加一個抄送 * @param [type] $address [地址] * @param [type] $name [顯示的名稱] */ public function addCC($address, $name = '') $mail->addCC('cc@example.com'); ~~~ ### 添加密送 ~~~ /** * 添加一個密送 * @param [type] $address [地址] * @param string $name [顯示的名稱] */ public function addBCC($address, $name = '') $mail->addBCC('bcc@example.com'); ~~~ ### 添加回復地址 ~~~ /** * 添加回復地址 * @param [type] $address [地址] * @param [type] $name [顯示的名稱] */ public function addReplyTo($address, $name = '') $mail->addReplyTo('info@example.com', 'Information'); ~~~ ### 添加附件 ~~~ /** * 添加一個附件 * @param [type] $path [附件地址] * @param string $name [顯示的名稱] */ public function addAttachment($path, $name = '') ~~~ ### 設置屬性 設置主機域名端口密碼等等屬性 | 名稱 | 值 | 描述 | | --- | --- | --- | | Host | localhost | 主機地址 | | Port | 25 | 服務器端口 | | Username | 123 | 用戶名 | | Password | 123 | 密碼 | | SMTPSecure | ssl | 是否加密 | | Subject | 標題 | 可選 | | Body | 內容 | 可選 | ~~~ /** * 進行批量設置 * @param array $config [配置項,host 端口等等] * // 可選參數 * [host=>'value', Port=>'value', Username=>'value', Password=>'value', SMTPSecure=>'value', Subject=>'value', AltBody=>'value', Body=>'value'] * @return [type] [$this] */ public function set(array $config) ~~~ ### 發送 如果沒有調用添加收件人 可以在發送時傳入收件人信息和內容 成功true失敗false ~~~ /** * 發送郵件 * @param string $tomail [收件人地址] * @param string $toName [收件人名稱] * @param string $title [標題] * @param string $body [內容] * @return [type] [description] */ public function send($tomail = '', $toName = '', $title = '', $body = '') $mail->send(); ~~~
                  <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>

                              哎呀哎呀视频在线观看