Add: send_naver_mail
Fix: do not send mail
This commit is contained in:
+28
@@ -0,0 +1,28 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Ukrainian PHPMailer language file: refer to English translation for definitive list
|
||||||
|
* @package PHPMailer
|
||||||
|
* @author Yuriy Rudyy <yrudyy@prs.net.ua>
|
||||||
|
* @fixed by Boris Yurchenko <boris@yurchenko.pp.ua>
|
||||||
|
*/
|
||||||
|
|
||||||
|
$PHPMAILER_LANG['authenticate'] = 'Помилка SMTP: помилка авторизації.';
|
||||||
|
$PHPMAILER_LANG['connect_host'] = 'Помилка SMTP: не вдається під\'єднатися до SMTP-серверу.';
|
||||||
|
$PHPMAILER_LANG['data_not_accepted'] = 'Помилка SMTP: дані не прийнято.';
|
||||||
|
$PHPMAILER_LANG['encoding'] = 'Невідоме кодування: ';
|
||||||
|
$PHPMAILER_LANG['execute'] = 'Неможливо виконати команду: ';
|
||||||
|
$PHPMAILER_LANG['file_access'] = 'Немає доступу до файлу: ';
|
||||||
|
$PHPMAILER_LANG['file_open'] = 'Помилка файлової системи: не вдається відкрити файл: ';
|
||||||
|
$PHPMAILER_LANG['from_failed'] = 'Невірна адреса відправника: ';
|
||||||
|
$PHPMAILER_LANG['instantiate'] = 'Неможливо запустити функцію mail().';
|
||||||
|
$PHPMAILER_LANG['provide_address'] = 'Будь ласка, введіть хоча б одну email-адресу отримувача.';
|
||||||
|
$PHPMAILER_LANG['mailer_not_supported'] = ' - поштовий сервер не підтримується.';
|
||||||
|
$PHPMAILER_LANG['recipients_failed'] = 'Помилка SMTP: не вдалося відправлення для таких отримувачів: ';
|
||||||
|
$PHPMAILER_LANG['empty_message'] = 'Пусте повідомлення';
|
||||||
|
$PHPMAILER_LANG['invalid_address'] = 'Не відправлено через неправильний формат email-адреси: ';
|
||||||
|
$PHPMAILER_LANG['signing'] = 'Помилка підпису: ';
|
||||||
|
$PHPMAILER_LANG['smtp_connect_failed'] = 'Помилка з\'єднання з SMTP-сервером';
|
||||||
|
$PHPMAILER_LANG['smtp_error'] = 'Помилка SMTP-сервера: ';
|
||||||
|
$PHPMAILER_LANG['variable_set'] = 'Неможливо встановити або скинути змінну: ';
|
||||||
|
$PHPMAILER_LANG['extension_missing'] = 'Розширення відсутнє: ';
|
||||||
@@ -22,7 +22,7 @@ change_extension_request_status_to_applied($maestro_extension_id);
|
|||||||
|
|
||||||
$maestro_data = get_maestro_data($maestro_id);
|
$maestro_data = get_maestro_data($maestro_id);
|
||||||
// $maestro_name, $new_available_date, $maestro_email
|
// $maestro_name, $new_available_date, $maestro_email
|
||||||
sendMailExtensionDone($maestro_data["name"], $new_available_date, $maestro_data["email"]);
|
// sendMailExtensionDone($maestro_data["name"], $new_available_date, $maestro_data["email"]);
|
||||||
insertMaestroLog("extension_maestro", $maestro_id, $maestro_name."(".$registered_account_type.")");
|
insertMaestroLog("extension_maestro", $maestro_id, $maestro_name."(".$registered_account_type.")");
|
||||||
|
|
||||||
// set_data("maestro_extension_id", $maestro_extension_id);
|
// set_data("maestro_extension_id", $maestro_extension_id);
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ $count = count_registered_player($maestroID);
|
|||||||
update_count_registered_player($maestroID, $count);
|
update_count_registered_player($maestroID, $count);
|
||||||
|
|
||||||
$maestro_data = get_maestro_data($maestroID);
|
$maestro_data = get_maestro_data($maestroID);
|
||||||
sendMailRegisterDone($maestro_data["name"], $maestro_data["email"]);
|
// sendMailRegisterDone($maestro_data["name"], $maestro_data["email"]);
|
||||||
insertMaestroLog("register_maestro", $maestroID, $maestro_data["name"]." / ".$maestro_data["email"]);
|
insertMaestroLog("register_maestro", $maestroID, $maestro_data["name"]." / ".$maestro_data["email"]);
|
||||||
|
|
||||||
send_result_success();
|
send_result_success();
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ change_upgrade_request_status_to_close($maestro_id);
|
|||||||
change_upgrade_request_status_to_applied($maestro_upgrade_id);
|
change_upgrade_request_status_to_applied($maestro_upgrade_id);
|
||||||
|
|
||||||
$maestro_data = get_maestro_data($maestro_id);
|
$maestro_data = get_maestro_data($maestro_id);
|
||||||
sendMailUpgradeDone($maestro_data["name"], $maestro_data["email"], $registered_account_type, $upgrade_account_type);
|
// sendMailUpgradeDone($maestro_data["name"], $maestro_data["email"], $registered_account_type, $upgrade_account_type);
|
||||||
insertMaestroLog("upgrade_maestro", $maestro_id, $registered_account_type." -> ".$upgrade_account_type);
|
insertMaestroLog("upgrade_maestro", $maestro_id, $registered_account_type." -> ".$upgrade_account_type);
|
||||||
|
|
||||||
// set_data("maestro_upgrade_id", $maestro_upgrade_id);
|
// set_data("maestro_upgrade_id", $maestro_upgrade_id);
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ if($maestroID === null) {
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
sendMailRegisterBankInfo($maestro_name, $email, $account_type);
|
// sendMailRegisterBankInfo($maestro_name, $email, $account_type);
|
||||||
insertMaestroLog("add_maestro", $maestroID, $maestro_name." / ".$email." / ".$account_type);
|
insertMaestroLog("add_maestro", $maestroID, $maestro_name." / ".$email." / ".$account_type);
|
||||||
|
|
||||||
send_result_success();
|
send_result_success();
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ if($countUpgrade === null || $countUpgrade < 1) {
|
|||||||
|
|
||||||
$maestro_data = get_maestro_data($maestro_id);
|
$maestro_data = get_maestro_data($maestro_id);
|
||||||
// $maestro_name, $available_date, $new_available_date, $maestro_email, $registered_account_type
|
// $maestro_name, $available_date, $new_available_date, $maestro_email, $registered_account_type
|
||||||
sendMailExtensionBankInfo($maestro_data["name"], $available_date, $new_available_date, $maestro_data["email"], $account_type);
|
// sendMailExtensionBankInfo($maestro_data["name"], $available_date, $new_available_date, $maestro_data["email"], $account_type);
|
||||||
|
|
||||||
send_result_success();
|
send_result_success();
|
||||||
exit;
|
exit;
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ if($countUpgrade === null || $countUpgrade < 1) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$maestro_data = get_maestro_data($maestro_id);
|
$maestro_data = get_maestro_data($maestro_id);
|
||||||
sendMailUpgradeBankInfo($maestro_data["name"], $maestro_data["email"], $registered_acount_type, $upgrade_account_type);
|
// sendMailUpgradeBankInfo($maestro_data["name"], $maestro_data["email"], $registered_acount_type, $upgrade_account_type);
|
||||||
|
|
||||||
send_result_success();
|
send_result_success();
|
||||||
exit;
|
exit;
|
||||||
|
|||||||
@@ -28,12 +28,12 @@ update_maestro_info($maestroID, $maestroName, $email);
|
|||||||
|
|
||||||
|
|
||||||
if($maestroName != $maestro_name_prev) {
|
if($maestroName != $maestro_name_prev) {
|
||||||
sendMailUpdateMaestroName($maestroName, $maestro_name_prev, $email);
|
// sendMailUpdateMaestroName($maestroName, $maestro_name_prev, $email);
|
||||||
insertMaestroLog("update_maestro_name", $maestroID, $maestro_name_prev." -> ".$maestroName);
|
insertMaestroLog("update_maestro_name", $maestroID, $maestro_name_prev." -> ".$maestroName);
|
||||||
}
|
}
|
||||||
|
|
||||||
if($email != $email_prev) {
|
if($email != $email_prev) {
|
||||||
sendMailUpdateMaestroEmail($maestroName, $email, $email_prev);
|
// sendMailUpdateMaestroEmail($maestroName, $email, $email_prev);
|
||||||
insertMaestroLog("update_maestro_email", $maestroID, $email_prev." -> ".$email);
|
insertMaestroLog("update_maestro_email", $maestroID, $email_prev." -> ".$email);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ function send_naver_mail($maestro_email, $maestro_name, $subject, $body) {
|
|||||||
$mail->isSMTP(); // Send using SMTP
|
$mail->isSMTP(); // Send using SMTP
|
||||||
$mail->Host = 'smtp.naver.com'; // Set the SMTP server to send through
|
$mail->Host = 'smtp.naver.com'; // Set the SMTP server to send through
|
||||||
$mail->SMTPAuth = true; // Enable SMTP authentication
|
$mail->SMTPAuth = true; // Enable SMTP authentication
|
||||||
$mail->Username = 'chocomae@jinaju.com'; // SMTP username
|
$mail->Username = $sender_email; // SMTP username
|
||||||
$mail->Password = 'n52napark!'; // SMTP password
|
$mail->Password = 'n52napark!'; // SMTP password
|
||||||
$mail->CharSet = 'utf-8';
|
$mail->CharSet = 'utf-8';
|
||||||
$mail->Encoding = "base64";
|
$mail->Encoding = "base64";
|
||||||
|
|||||||
@@ -4,37 +4,39 @@ header("Content-Type: application/json");
|
|||||||
include_once "./mail_setting.php";
|
include_once "./mail_setting.php";
|
||||||
include_once "./send_naver_mail.php";
|
include_once "./send_naver_mail.php";
|
||||||
|
|
||||||
|
$br = "<br>";
|
||||||
|
|
||||||
$maestro_email = "jisangs@daum.net";
|
$maestro_email = "jisangs@daum.net";
|
||||||
$maestro_name = "박지상 마에스트로";
|
$maestro_name = "박지상 마에스트로";
|
||||||
$subject = "Naver 메일 발신 테스트";
|
$subject = "Naver 메일 발신 테스트";
|
||||||
$body = "안녕하세요.".$new_line.
|
$body = "안녕하세요.".$br.
|
||||||
"[초코마에] 마에스트로 계정 요금제 업그레이드를 신청해주셔서 감사합니다.".$new_line
|
"[초코마에] 마에스트로 계정 요금제 업그레이드를 신청해주셔서 감사합니다.".$br
|
||||||
.$new_line
|
.$br
|
||||||
."※ 지금 보고 계신 메일이 [스팸 메일함]에 들어있다면, [스팸 해제]를 부탁드립니다 ※".$new_line
|
."※ 지금 보고 계신 메일이 [스팸 메일함]에 들어있다면, [스팸 해제]를 부탁드립니다 ※".$br
|
||||||
."(이후에 [계정 등록 알림], [계정 유효기간 종료 예고] 등의 메일이 발송됩니다)".$new_line
|
."(이후에 [계정 등록 알림], [계정 유효기간 종료 예고] 등의 메일이 발송됩니다)".$br
|
||||||
.$new_line
|
.$br
|
||||||
.$new_line
|
.$br
|
||||||
.$maestro_name." - 마에스트로 계정의 현재 요금제와 업그레이드 요금제는 아래와 같습니다.".$new_line
|
.$maestro_name." - 마에스트로 계정의 현재 요금제와 업그레이드 요금제는 아래와 같습니다.".$br
|
||||||
."1) 현재 사용중인 요금제 : ////".$new_line
|
."1) 현재 사용중인 요금제 : ////".$br
|
||||||
."2) 신청하신 업그레이드 요금제 : ////".$new_line
|
."2) 신청하신 업그레이드 요금제 : ////".$br
|
||||||
.$new_line
|
.$br
|
||||||
.$new_line
|
.$br
|
||||||
."계정 요금제 업그레이드를 위한 은행 계좌 입금 정보는 아래와 같습니다.".$new_line
|
."계정 요금제 업그레이드를 위한 은행 계좌 입금 정보는 아래와 같습니다.".$br
|
||||||
."------------------------------------------------------------".$new_line
|
."------------------------------------------------------------".$br
|
||||||
." ☞ 빠른 입금 확인을 위해, 송금자명을 본인 이름 대신 위와 같이 아이디로 부탁드립니다 ☜".$new_line
|
." ☞ 빠른 입금 확인을 위해, 송금자명을 본인 이름 대신 위와 같이 아이디로 부탁드립니다 ☜".$br
|
||||||
."------------------------------------------------------------".$new_line
|
."------------------------------------------------------------".$br
|
||||||
.$new_line
|
.$br
|
||||||
."* 혹시 신청하신 아이디가 아니라 본인 이름등으로 송금되었다면, 송금자명을 본 메일로 답신 부탁드립니다.".$new_line
|
."* 혹시 신청하신 아이디가 아니라 본인 이름등으로 송금되었다면, 송금자명을 본 메일로 답신 부탁드립니다.".$br
|
||||||
.$new_line
|
.$br
|
||||||
."* 상위 요금제로 업그레이드 하시면, 현재 계정의 남은 기간에 1년이 추가됩니다.".$new_line
|
."* 상위 요금제로 업그레이드 하시면, 현재 계정의 남은 기간에 1년이 추가됩니다.".$br
|
||||||
."* 비활성화된 계정과 그 안에 있는 모든 정보는, 6개월 후에 자동 삭제됩니다.".$new_line
|
."* 비활성화된 계정과 그 안에 있는 모든 정보는, 6개월 후에 자동 삭제됩니다.".$br
|
||||||
.$new_line
|
.$br
|
||||||
.$new_line
|
.$br
|
||||||
."계정 신청 내역과 입금 내역이 확인되는대로 마에스트로 아이디를 업그레이드 해드리겠습니다.".$new_line
|
."계정 신청 내역과 입금 내역이 확인되는대로 마에스트로 아이디를 업그레이드 해드리겠습니다.".$br
|
||||||
."현재 수작업으로 확인하고 활성화하고 있어서 시간이 조금 걸리는 점 양해 부탁드립니다.".$new_line
|
."현재 수작업으로 확인하고 활성화하고 있어서 시간이 조금 걸리는 점 양해 부탁드립니다.".$br
|
||||||
."마에스트로 계정이 업그레이드 되는대로, 즉시 알림 메일을 드리겠습니다.".$new_line
|
."마에스트로 계정이 업그레이드 되는대로, 즉시 알림 메일을 드리겠습니다.".$br
|
||||||
.$new_line
|
.$br
|
||||||
."감사합니다.".$new_line;
|
."감사합니다.".$br;
|
||||||
|
|
||||||
|
|
||||||
send_naver_mail($maestro_email, $maestro_name, $subject, $body);
|
send_naver_mail($maestro_email, $maestro_name, $subject, $body);
|
||||||
Reference in New Issue
Block a user