폼메일 메일전송이 안되요 ㅜ 채택완료
안녕하세요
폼메일에서 메일을 보내면 전송완료가 됫다는 문구까지는 뜨는데
실제로 전송은 안되는거같네요 아무리 테스트해봐도 메일은 오지가 않네요
어느부분이 잘못되엇는지 확인좀 부탁드려요 고수여러분 ㅎ
<---------------------- html 부분 -------------------------->
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" target="_blank">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.org/1999/xhtml">
<---------------------- php 부분 -------------------------->
//보내는 이 $recipient = wjddmsgml@naver.com; //제목 처리 $subject = '=?UTF-8?B?'.base64_encode($_GET['title']).'?='; //메일주소 $mail_from = '=?UTF-8?B?'.base64_encode($_GET['email']).'?=';
//메일내용 $mail_body = "
| 제목 | ". $_GET['title']." |
| 성함 | ". $_GET['senduser']." |
| 연락처 | ". $_GET['phone']." |
| 이메일 | ". $_GET['email']." |
| 전달사항 | ". $_GET['body']." |
//메일 발송처리
$header = "From:$subject\n"; $header = "Content-Type: text/html;charset=UTF-8"; $header .= "From : $mail_from <".$mail_from.">\n";
$email = mail($recipient, $subject, $mail_body, $header);
if (!$email) echo " "; else echo " "; ?>
답변 4개
답변을 작성하려면 로그인이 필요합니다.
로그인