1) alert_close('한번에 한사람에게만 메일을 발송할 수 있습니다.'); $key = get_session('captcha_keystring'); if (!($key && $key == $_POST[wr_key])) { session_unregister('captcha_keystring'); alert('정상적인 접근이 아닌것 같습니다.'); } for ($i=1; $i<=$attach; $i++) { if ($_FILES['file'.$i][name]) $file[] = attach_file($_FILES['file'.$i][name], $_FILES['file'.$i][tmp_name]); } $content = stripslashes($content); if ($type == 2) { $type = 1; $content = preg_replace("/\n/", "
", $content); } // html 이면 if ($type) { $current_url = $g4[url]; $mail_content = '메일보내기'.$content.''; } else $mail_content = $content; mailer($fnick, $fmail, $to, $subject, $mail_content, $type, $file); //$html_title = $tmp_to . "님께 메일발송"; $html_title = '메일 발송중'; include_once($g4['path'].'/head.sub.php'); alert_close('메일을 정상적으로 발송하였습니다.'); include_once($g4['path'].'/tail.sub.php'); ?>