本文整理汇总了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']);
}
示例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());
}
}
示例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>';