폼메일 질문 드립니다. 채택완료
김진횰
8년 전
조회 3,947
인터넷에 돌아다니는 폼메일 소스를 구해서 사용중인데요 (잘됩니다)
항목을 추가하고싶은데....
아래 이미지처럼 (좌측 제목은 이미지라서 제가 수정 가능합니다.)
두개정도만 추가하려고 하는데 어떻게 하면 될까요??

폼.html 과 데이터.php
이렇게 두가지 파일이 있습니다
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml">
----------------------------------------------------------------------------
//보내는 이
$recipient = "sopunglondon@gmail.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 "
window.alert('메일 발송이 실패하였습니다. ');
history.go(-1);
";
else
echo "
window.alert('메일이 정상적으로 발송되었습니다.');
history.go(-1);
";
?>
댓글을 작성하려면 로그인이 필요합니다.
답변 1개
답변을 작성하려면 로그인이 필요합니다.
로그인