window.alert('$text') history.go(-1) "; exit; } function msg($text){ echo " "; exit; } // 지정된 페이지로 이동하는 함수 function goUrl($str, $go=-1) { echo ""; } if (!$user_name) {error('이름을 입력해주세요.!!');} // 이름이 없을때 에러 메세지 if (!$user_hp2) {error('핸드폰번호를 입력해주세요!!');} // 메일주소가 없을때 에러 메세지 if (!$user_mail) {error('메일 주소를 입력해주세요!!');} // 메일주소가 없을때 에러 메세지 $mailheaders = "Return-Path: $user_mail \r\n"; // 메일 헤더의 반송 메일 주소 $mailheaders .= "Subject: $subject \r\n"; // 메일헤더의 제목표시 $mailheaders .= "From: $user_name <$user_mail>\r\n"; // 메일헤더의 이름과 메일 주소 표시 $mailheaders .= "Content-Type: TEXT/HTML; charset=utf-8 \r\n";//인코딩 $body .= "$mem_form \r\n"; $body .="

접수내용

고객명 : $user_name
이메일 : $user_mail @ $user_mail2
핸드폰번호 : $user_hp1 - $user_hp2 - $user_hp3
주소 : $user_address2
희망진료과목 : $user_reser
시술희망일 : $user_date1 년 $user_date2 월 $user_date3 일
상담내용 : $memo
"; //$result=mail($tomail , $subject , $body , $mailheaders ); // 메일 전송 //if($result) {msg('신청이 접수되었습니다.!!');} // 전송 성공시 //else{error('다시 입력해주세요.!!');} // 전송 실패시 if(!mail($tomail , $subject , $body , $mailheaders)) goUrl("이메일 발송에 실패 하였습니다."); else goUrl('메일이 정상적으로 발송되었습니다.', 'http://www.belleaim.com/bbs/mailAsk'); ?>