Add: maestro extension php, send e-mail
This commit is contained in:
@@ -141,6 +141,42 @@ function sendMailUpdateMaestroEmail($maestro_name, $maestro_email, $maestro_emai
|
||||
}
|
||||
|
||||
|
||||
function sendMailExtensionBankInfo($maestro_name, $available_date, $new_available_date, $maestro_email, $registered_account_type) {
|
||||
|
||||
// echo("$maestro_email : ".$maestro_email." / ");
|
||||
// echo("$available_date : ".$available_date);
|
||||
// return;
|
||||
|
||||
$postParamData = makeDefaultPostParamData($maestro_name, $maestro_email);
|
||||
|
||||
$postParamData["templateSid"] = "335";
|
||||
$postParamData["parameters"] = array(
|
||||
"account_type" => get_accout_type($registered_account_type),
|
||||
"bank_account_no" => "3333-07-4977969",
|
||||
"bank_name" => "카카오뱅크",
|
||||
"bank_owner_name" => "박지상",
|
||||
"maestro_email" => $maestro_email,
|
||||
"maestro_name" => $maestro_name,
|
||||
"available_date" => $available_date,
|
||||
"new_available_date" => $new_available_date,
|
||||
"price" => number_format(get_price($registered_account_type))
|
||||
);
|
||||
|
||||
sendEmail($postParamData);
|
||||
}
|
||||
|
||||
function sendMailExtensionDone($maestro_name, $new_available_date, $maestro_email) {
|
||||
$postParamData = makeDefaultPostParamData($maestro_name, $maestro_email);
|
||||
|
||||
$postParamData["templateSid"] = "336";
|
||||
$postParamData["parameters"] = array(
|
||||
"maestro_name" => $maestro_name,
|
||||
"new_available_date" => $new_available_date
|
||||
);
|
||||
|
||||
sendEmail($postParamData);
|
||||
}
|
||||
|
||||
function sendEmail($postParamData) {
|
||||
global $host_name_url, $request_url, $access_key, $secret_key, $api_key, $method, $request_id;
|
||||
global $sender_name, $sender_address;
|
||||
|
||||
@@ -12,9 +12,12 @@ $type = $_POST["type"];
|
||||
$maestro_id = $_POST["maestro_id"];
|
||||
$maestro_name = $_POST["maestro_name"];
|
||||
$password = $_POST["password"];
|
||||
$available_date = $_POST["available_date"];
|
||||
$new_available_date = $_POST["new_available_date"];
|
||||
$maestro_email = $_POST["email"];
|
||||
$account_type = $_POST["account_type"];
|
||||
$upgrade_account_type = $_POST["upgrade_account_type"];
|
||||
$registered_account_type = $_POST["registered_account_type"];
|
||||
$maestro_name_prev = $_POST["maestro_name_prev"];
|
||||
$maestro_email_prev = $_POST["email_prev"];
|
||||
|
||||
@@ -31,6 +34,10 @@ if($type == "sendMailRegisterBankInfo") {
|
||||
sendMailUpdateMaestroName($maestro_name, $maestro_name_prev, $maestro_email);
|
||||
} else if($type == "sendMailUpdateMaestroEmail") {
|
||||
sendMailUpdateMaestroEmail($maestro_name, $maestro_email, $maestro_email_prev);
|
||||
} else if($type == "sendMailExtensionBankInfo") {
|
||||
sendMailExtensionBankInfo($maestro_name, $available_date, $new_available_date, $maestro_email, $registered_account_type);
|
||||
} else if($type == "sendMailExtensionDone") {
|
||||
sendMailExtensionDone($maestro_name, $new_available_date, $maestro_email);
|
||||
} else if($type == "get_maestro_data") {
|
||||
// maestro data
|
||||
$maestro_data = get_maestro_data($maestro_id);
|
||||
|
||||
Reference in New Issue
Block a user