diff --git a/adm/admin.lib.php b/adm/admin.lib.php index 728af6023..be1c48de0 100644 --- a/adm/admin.lib.php +++ b/adm/admin.lib.php @@ -421,6 +421,16 @@ function get_sanitize_input($s, $is_html = false) return $s; } +function domain_mail_host($is_at=true){ + list($domain_host,) = explode(':', $_SERVER['HTTP_HOST']); + + if ('www.' === substr($domain_host, 0, 4)) { + $domain_host = substr($domain_host, 4); + } + + return $is_at ? '@'.$domain_host : $domain_host; +} + function check_log_folder($log_path, $is_delete = true) { diff --git a/adm/config_form.php b/adm/config_form.php index 918f6ed90..6ea223ff9 100644 --- a/adm/config_form.php +++ b/adm/config_form.php @@ -475,6 +475,9 @@ if ($config['cf_sms_use'] && $config['cf_icode_id'] && $config['cf_icode_pw']) { + + name'.domain_mail_host().' 과 같은 도메인 형식으로 설정할것을 권장합니다.') ?> + diff --git a/adm/sendmail_test.php b/adm/sendmail_test.php index bb7801d11..9cddfbd93 100644 --- a/adm/sendmail_test.php +++ b/adm/sendmail_test.php @@ -41,6 +41,7 @@ if (isset($_POST['email'])) { echo '해당 주소로 테스트 메일이 도착했는지 확인해 주십시오.
'; echo '만약, 테스트 메일이 오지 않는다면 더 다양한 계정의 메일 주소로 메일을 보내 보십시오.
'; echo '그래도 메일이 하나도 도착하지 않는다면 메일 서버(sendmail server)의 오류일 가능성이 높으니, 웹 서버관리자에게 문의하여 주십시오.
'; + echo '도메인을 소유하고 있을시 SPF, DKIM 설정이 필요할수 있습니다.
'; echo '

'; echo ''; } @@ -53,6 +54,10 @@ if (isset($_POST['email'])) {

메일서버가 정상적으로 동작 중인지 확인할 수 있습니다.
아래 입력칸에 테스트 메일을 발송하실 메일 주소를 입력하시면, [메일검사] 라는 제목으로 테스트 메일을 발송합니다.
+ 보내는 메일주소 :
+ + 기본환경설정에서 관리자 메일 주소를 name'.domain_mail_host().' 과 같은 도메인 형식으로 설정할것을 권장합니다.'; ?> +