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


PHP model::send_mail方法代碼示例

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


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

示例1: model

<?php

include 'model.php';
$obj = new model();
header('Content-type: application/json');
$conn = $obj->database();
$name = $_REQUEST['name'];
$email = $_REQUEST['email'];
$message = $_REQUEST['message'];
$var1 = $obj->contact_us($conn, $name, $email, $message);
$conf = $obj->send_mail($name, $email, $message, '', '', '', '');
if ($var1 == 1) {
    $obj->mail_for_client_cont($name, $email, $message);
    $data = array('status' => 200, 'message' => "Thank you! Your message has been successfully sent. We will contact you very soon!");
    echo json_encode($data);
} else {
    $data = array('status' => 400, 'message' => "Not submitted successfully!");
    echo json_encode($data);
    // echo json_encode("error");
}
開發者ID:hastigoswami,項目名稱:cloudzon,代碼行數:20,代碼來源:cont_us.php

示例2: model

<?php

include 'model.php';
$obj = new model();
header('Content-type: application/json');
$conn = $obj->database();
$name = $_POST['s_name'];
$company_name = $_POST['s_company_name'];
$email = $_POST['s_email'];
$phone = $_POST['s_phone'];
$web = $_POST['s_website'];
$assistance = $_POST['s_preferance'];
$message = $_POST['s_message'];
$conf = $obj->support($name, $company_name, $email, $phone, $web, $assistance, $message, $conn);
$conf = $obj->send_mail($name, $email, $message, $assistance, $company_name, $phone, $web);
if ($conf == 'done') {
    $data = array('status' => 200, 'message' => "Your query has been sent successfully. We will contact you very soon.");
    echo json_encode($data);
} else {
    $data = array('status' => 400, 'message' => "Your query Not submitted successfully.");
    echo json_encode($data);
}
開發者ID:hastigoswami,項目名稱:cloudzon,代碼行數:22,代碼來源:suppo.php

示例3: model

<?php

include 'model.php';
$obj = new model();
header('Content-type: application/json');
$conn = $obj->database();
$name = $_POST['name'];
$email = $_POST['email'];
$contact = $_POST['contact'];
$conf = $obj->buy($name, $email, $contact, $conn);
if ($conf == 1) {
    //$obj->mail_for_client_enq($name,$email,$message);
    $obj->send_mail($name, $email, '', '', 'templates_buy_REQUEST', $contact, '');
    $data = array('status' => 200, 'message' => 'Our Customer representative contact you shortly');
    echo json_encode($data);
} else {
    $data = array('status' => 400, 'message' => 'Your query Not submitted successfully');
    echo json_encode($data);
}
開發者ID:hastigoswami,項目名稱:cloudzon,代碼行數:19,代碼來源:buy_temp.php


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