테스트 사이트 - 개발 중인 베타 버전입니다

폼메일 질문 드립니다. 채택완료

김진횰 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">

Untitled Document

 

 

 

   

 

   

 

 

   

 

 

   

 

     

       

       

       

     

   

       

       

  

        

       

         

           

           

         

         

           

           

         

         

           

           

         

         

           

           

         

         

           

           

         

         

           

         

         

           

           

         

       

             size="32" />

             size="32" />

             size="32" />

             size="32"/ >

 
 

             

   

----------------------------------------------------------------------------
//보내는 이
  $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 " ";
  else
    echo "         ";
?>
댓글을 작성하려면 로그인이 필요합니다.

답변 1개

채택된 답변
+20 포인트
인덱스웹
         
          제목
          ". $_GET['title']."".
        
          성함
          ". $_GET['senduser']."".
*** 똑같이 이런형태를 아래에 복사하고...
   ​   진행하시면 됩니다.
로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인