Add: sendMailRegistered, mail php
This commit is contained in:
@@ -15,10 +15,59 @@
|
||||
$("#header").load("admin_header.html");
|
||||
});
|
||||
|
||||
function sendMail() {
|
||||
function getMaestroData() {
|
||||
var maestroID = 1;
|
||||
|
||||
sendRequestServer( //url, sendParams, onSuccess, onFail, isDebugMode);
|
||||
"./../server/mail/testmail.php",
|
||||
"maestro_id=" + maestroID,
|
||||
// "./../server/mail/send_mail_bank_info.php",
|
||||
"./../server/mail/send_mail_test.php",
|
||||
"type=get_maestro_data" + "&maestro_id=" + maestroID,
|
||||
|
||||
function(jsonData) {
|
||||
console.log(jsonData);
|
||||
// showErrorMessage("마에스트로 계정이 정상적으로 등록되었습니다.", "success");
|
||||
// loadMaestroList("");
|
||||
},
|
||||
|
||||
function(errorMessage, errorCode) {
|
||||
showErrorMessage(errorMessage, "error");
|
||||
}
|
||||
|
||||
);
|
||||
}
|
||||
|
||||
function sendMailBankInfo() {
|
||||
var maestroName = "삼화초";
|
||||
var email = "jisangs@daum.net";
|
||||
var accountType = 1;
|
||||
|
||||
sendRequestServer( //url, sendParams, onSuccess, onFail, isDebugMode);
|
||||
// "./../server/mail/send_mail_bank_info.php",
|
||||
"./../server/mail/send_mail_test.php",
|
||||
"type=sendMailBankInfo" + "&maestro_name=" + maestroName + "&email=" + email + "&account_type=" + accountType,
|
||||
|
||||
function(jsonData) {
|
||||
console.log(jsonData);
|
||||
// showErrorMessage("마에스트로 계정이 정상적으로 등록되었습니다.", "success");
|
||||
// loadMaestroList("");
|
||||
},
|
||||
|
||||
function(errorMessage, errorCode) {
|
||||
showErrorMessage(errorMessage, "error");
|
||||
}
|
||||
|
||||
);
|
||||
}
|
||||
|
||||
function sendMailRegistered() {
|
||||
var maestroName = "삼화초";
|
||||
var email = "jisangs@daum.net";
|
||||
var accountType = 1;
|
||||
|
||||
sendRequestServer( //url, sendParams, onSuccess, onFail, isDebugMode);
|
||||
// "./../server/mail/send_mail_bank_info.php",
|
||||
"./../server/mail/send_mail_test.php",
|
||||
"type=sendMailRegistered" + "&maestro_name=" + maestroName + "&email=" + email + "&account_type=" + accountType,
|
||||
|
||||
function(jsonData) {
|
||||
console.log(jsonData);
|
||||
@@ -49,25 +98,12 @@
|
||||
|
||||
<div id="message_box"></div>
|
||||
|
||||
<button type="button" class="btn btn-primary" onClick="sendMail()">메일 발송</button>
|
||||
<button type="button" class="btn btn-primary" onClick="sendMailBankInfo()">[ 마에 ] 입금 계좌 안내 메일 발송</button>
|
||||
|
||||
<!--
|
||||
<div class="row mx-1">
|
||||
<div class="col">
|
||||
<h5 class="my-3">마에스트로 검색</h5>
|
||||
<button type="button" class="btn btn-primary" onClick="sendMailRegistered()">[ 마에 ] 등록 완료 메일 발송</button>
|
||||
|
||||
<button type="button" class="btn btn-secondary" onClick="getMaestroData()">마에스트로 데이터 테스트</button>
|
||||
|
||||
<div class="input-group mb-3">
|
||||
<div class="input-group-prepend">
|
||||
<label class="input-group-text" for="search_name">마에스트로 아이디</label>
|
||||
</div>
|
||||
<input type="text" class="form-control" id="search_name" placeholder="Input maestro ID here" aria-label="Recipient's username" aria-describedby="basic-addon2">
|
||||
<div class="input-group-append">
|
||||
<button type="button" class="btn btn-primary" onClick="searchMaestro()">검색 실행</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
-->
|
||||
|
||||
|
||||
</div> <!-- container -->
|
||||
|
||||
Reference in New Issue
Block a user