當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Helpers::sendMail方法代碼示例

本文整理匯總了PHP中Helpers::sendMail方法的典型用法代碼示例。如果您正苦於以下問題:PHP Helpers::sendMail方法的具體用法?PHP Helpers::sendMail怎麽用?PHP Helpers::sendMail使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Helpers的用法示例。


在下文中一共展示了Helpers::sendMail方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: storeOrders

 public function storeOrders()
 {
     // dd();
     $order = new Order(Request::all());
     $order->save();
     return $order;
     $surcharge_percentage = 0;
     $data = ['name' => trim($request->name), 'email' => trim($request->email), 'currency_purchased' => trim($request->currency_purchased), 'exchange_rate' => trim($request->exchange_rate), 'amount_paid' => trim($request->amount_paid)];
     if (trim($data['currency_purchased']) == 'USDGBP') {
         Helpers::sendMail($data, 'GBP Ordered');
     }
     // return response()->json(['message' => 'success']);
 }
開發者ID:johnymap,項目名稱:forex,代碼行數:13,代碼來源:ForexController.php

示例2: DeactivateCampaign

 public function DeactivateCampaign()
 {
     $rules = array('comment' => 'required');
     $validator = Validator::make(Input::all(), $rules);
     // check if the validator failed -----------------------
     if ($validator->fails()) {
         return Redirect::to(URL::previous())->withErrors($validator)->with('err', '<div class="alert alert-danger alert-dismissable">
                             <i class="fa fa-ban"></i>
                             <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                             <b>Alert!</b> Please enter your comment below.
                         </div>');
     } else {
         $campaign_id = Request::segment(3);
         if (Helpers::isCampaignComplete(Helpers::getCampaignID($campaign_id))) {
             $rs = DB::select("select id,campaigname,user_id from tbl_campaigns where campaignstatus = 'Published' and approvalstatus = 'Pending' \n                         and uniqueid = ?", array($campaign_id));
             if (count($rs[0]) > 0 && strtoupper(Session::get('account_type')) == 'ADMIN') {
                 DB::table('tbl_campaigns')->where('uniqueid', $campaign_id)->update(array('approvalstatus' => 'Rejected'));
                 Session::flash('_response', '<div style="width: 98%"><div class="alert alert-success alert-dismissable">
                             <i class="fa fa-check"></i>
                             <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                             <b>' . $rs[0]->campaigname . '!</b> campaign rejected.
                             </div></div>');
                 $Details = Helpers::getProfileDetails($rs[0]->user_id);
                 Helpers::sendMail(array("names" => $Details[0]->firstname . ' ' . $Details[0]->lastname, "message" => Input::get('comment'), "status" => 'Rejected.', "to" => $Details[0]->email_address));
             } else {
                 Session::flash('_response', '<div style="width: 98%"><div class="alert alert-danger alert-dismissable">
                             <i class="fa fa-ban"></i>
                             <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                             <b>Alert!</b> campaign status change failed. Please try again later.
                             </div></div>');
             }
         } else {
             Session::flash('_response', '<div style="width: 98%"><div class="alert alert-danger alert-dismissable">
                             <i class="fa fa-ban"></i>
                             <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                             <b>Alert!</b> campaign status change failed. Please try again later.
                             </div></div>');
         }
         return Redirect::to(URL::previous());
     }
 }
開發者ID:centaurustech,項目名稱:bmradi,代碼行數:41,代碼來源:CampaignController.php

示例3: e

         $trans_id = e(Input::get('oid'));
         $transaction = Mradiwallettemplate::find($trans_id);
         $transaction->trx_id = $trx_id;
         $transaction->currency = e(Input::get('JP_CURRENCY'));
         $transaction->timestamp = e(Input::get('JP_TIMESTAMP'));
         $transaction->password = e(Input::get('JP_PASSWORD'));
         $transaction->channel = e(Input::get('JP_CHANNEL'));
         $transaction->mradistatustransaction_id = e(Input::get('sid'));
         $transaction->save();
         $cout = '<div style="width: 98%"><div class="alert alert-success alert-dismissable">
                             <i class="fa fa-check"></i>
                             <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                             <b> Successfully purchase Financial Template. Please check your email ' . session::get('email_address') . ' for download link.</b>
                             </div></div>';
         $Details = Helpers::getProfileDetails();
         Helpers::sendMail(array("names" => $Details[0]->firstname . ' ' . $Details[0]->lastname, "message" => 'Click on this link to download your template   www.mradi.com/ref=fin-900.doc', "to" => session::get('email_address')), true);
         $cid = Mradiwallettemplate::find($trans_id);
     }
 } elseif (Input::get('sid') != '1') {
     $trans_id = e(Input::get('oid'));
     $transaction = Mradiwallettemplate::find($trans_id);
     $transaction->mradistatustransaction_id = e(Input::get('sid'));
     $transaction->save();
     $cid = Mradiwallettemplate::find($trans_id);
     if (Input::get('sid') == '2') {
         error_log("cancelling flush");
         $cout = '<div style="width: 98%"><div class="alert alert-danger alert-dismissable">
                             <i class="fa fa-check"></i>
                             <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                             <b> Transaction Failed!! Please check your balance and try again later. </b>
                             </div></div>';
開發者ID:centaurustech,項目名稱:bmradi,代碼行數:31,代碼來源:get_template.blade.php


注:本文中的Helpers::sendMail方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。