Fix: announce trial maestro account
This commit is contained in:
@@ -106,6 +106,32 @@ $bodyMap['closedBetaRegistrationDone'] = "안녕하세요.<br/>".
|
||||
"감사합니다.";
|
||||
|
||||
|
||||
// registration - trialMaestro
|
||||
$subjectMap['trialMaestroRegistrationDone'] = "[초코마에] {{maestro_name}} - 마에스트로 계정 등록 및 활성화 완료";
|
||||
$bodyMap['trialMaestroRegistrationDone'] = "안녕하세요.<br/>".
|
||||
"[초코마에] 마에스트로 계정을 신청해 주셔서 감사합니다.<br/>".
|
||||
"<br/>".
|
||||
"신청하신 마에스트로 계정 내용은 아래와 같습니다.<br/>".
|
||||
"1) 아이디 : {{maestro_name}}<br/>".
|
||||
"2) 요금제 : {{student_count}}명 ({{price}}원)<br/>".
|
||||
"<br/>".
|
||||
"--------------------".
|
||||
"<br/>".
|
||||
"<br/>".
|
||||
"{{maestro_name}} - 마에스트로 계정이 활성화 되었습니다.<br/>".
|
||||
"<br/>".
|
||||
"<br/>".
|
||||
"* 오늘부터 2주(~{{two_weeks_later}})동안 무료로 사용하실 수 있습니다.<br/>".
|
||||
"* 체험 기간동안 유료 계정과 동일한 기능을 사용하실 수 있습니다. 마음에 들면 유료 결제(유효기간 연장 / 업그레이드)를 부탁드릴게요.<br/>".
|
||||
"* 체험 기간이 끝나고 비활성화된 계정은 어뷰징 및 서버 성능 향상을 위해 일정 기간이 지난 뒤 자동으로 삭제됩니다.<br/>".
|
||||
"<br/>".
|
||||
"등록하신 마에스트로 계정 정보는 마에스트로 로그인 후, [계정 정보 수정] 화면에서 변경이 가능합니다.<br/>".
|
||||
"(변경 가능 정보 : 마에스트로 아이디, 이메일, 암호)<br/>".
|
||||
"<br/>".
|
||||
"감사합니다.";
|
||||
|
||||
|
||||
|
||||
// extension
|
||||
$subjectMap['extensionBankInfo'] = "[초코마에] {{maestro_name}} - 마에스트로 계정 유효기간 연장을 위한 입금 안내";
|
||||
$bodyMap['extensionBankInfo'] = "안녕하세요.<br/>".
|
||||
|
||||
@@ -44,12 +44,15 @@ function sendMailRegisterDone($maestro_name, $maestro_email) {
|
||||
function sendMailTrialRegisterDone($maestro_name, $maestro_email, $account_type) {
|
||||
global $subjectMap, $bodyMap;
|
||||
|
||||
$subject = str_replace("{{maestro_name}}", $maestro_name, $subjectMap['closedBetaRegistrationDone']);
|
||||
$subject = str_replace("{{maestro_name}}", $maestro_name, $subjectMap['trialMaestroRegistrationDone']);
|
||||
|
||||
$body = str_replace("{{maestro_name}}", $maestro_name, $bodyMap['closedBetaRegistrationDone']);
|
||||
$body = str_replace("{{maestro_name}}", $maestro_name, $bodyMap['trialMaestroRegistrationDone']);
|
||||
$body = str_replace("{{student_count}}", get_max_player_count($account_type), $body);
|
||||
$price = number_format(get_price($account_type));
|
||||
$body = str_replace("{{price}}", $price, $body);
|
||||
$today = date("Y-m-d"); //현재 날짜
|
||||
$two_weeks_later = date("Y-m-d", strtotime($today."+2 weeks"));
|
||||
$body = str_replace("{{two_weeks_later}}", $two_weeks_later, $body);
|
||||
|
||||
return send_naver_mail($maestro_email, $maestro_name, $subject, $body);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user