Add: sendMailRegistered, mail php

This commit is contained in:
2018-09-19 11:22:36 +09:00
parent 697265ee29
commit bffc63996a
11 changed files with 300 additions and 175 deletions
@@ -3,6 +3,10 @@ header("Content-Type: application/json");
include "./../lib/send_reply_json.php";
include "./../setup/connect_db.php";
include "./../lib/maestro_account_info.php";
include "./../lib/db_maestro.php";
include "./../mail/mail_setting.php";
include "./../mail/send_mail.php";
$maestroID = $_POST["maestro_id"];
@@ -35,6 +39,8 @@ add_maestro_sample_player_data($maestroID);
$count = count_registered_player($maestroID);
update_count_registered_player($maestroID, $count);
$maestro_data = get_maestro_data($maestroID);
sendMailRegistered($maestro_data["name"], $maestro_data["email"]);
send_result_success();
exit;