아웃룩에서 폼메일 인코딩 깨짐 현상

아웃룩에서 폼메일 인코딩 깨짐 현상

QA

아웃룩에서 폼메일 인코딩 깨짐 현상

본문

네이버 , g-mail은 이상없는데 아웃룩 모바일에서만 폼메일 인코딩이 깨집니다 ㅠㅠ 



//소스


<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />


<?

//보내는 이

  $recipient = "*** 개인정보보호를 위한 이메일주소 노출방지 ***";


//제목 처리

  $subject = '=?UTF-8?B?'.base64_encode($_GET['title']).'?=';

//메일주소

  $mail_from = '=?UTF-8?B?'.base64_encode($_GET['email']).'?=';


//메일내용

  $mail_body = "<table width='600' border='0' cellpadding='0' cellspacing='1' bgcolor='#CCCCCC'>

        <tr> 

          <td width='100' height='30' align='center' bgcolor='#eeeeee'>이름</td>

          <td width='400' bgcolor='#FFFFFF'>". $_GET['senduser']."</td></tr>".

 "<tr> 

          <td width='100' height='30' align='center' bgcolor='#eeeeee'>회사명</td>

          <td width='400' bgcolor='#FFFFFF'>". $_GET['durasell']."</td></tr>".

 

       " <tr> 

          <td width='100' height='30' align='center' bgcolor='#eeeeee'>이메일</td>

          <td width='400' bgcolor='#FFFFFF'>". $_GET['con_email']."</td></tr>".

 " <tr> 

          <td width='100' height='30' align='center' bgcolor='#eeeeee'>연락처</td>

          <td width='400' bgcolor='#FFFFFF'>".$_GET['phone']."-".$_GET['phone1']."-".$_GET['phone2']."</td></tr>".

 

" <tr> 

          <td width='100' height='30' align='center' bgcolor='#eeeeee'>문의내용</td>

          <td width='400' bgcolor='#FFFFFF'>". $_GET['con__message']."</td></tr>".

 

        

 

      "</table>";


 

//메일 발송처리


  $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 "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" /> <script>

         window.alert('상담신청이 실패 되었습니다.');

         history.go(-1);

         </script>";

  else

    echo "         <script>

         window.alert('상담신청이 완료 되었습니다.');

         history.go(-1);

         </script>";

?>



어떻게 해야할까요? 도와주세요 ㅠㅠ 

이 질문에 댓글 쓰기 :

답변 3

아웃룩 클라이언트 설정에서 인코딩을 선택하는 부분이 있을겁니다.


또는 그 설정 없이 UTF-8 인코딩이라는 것을 알 수 있도록 BOM(Byte Order Mark) 이라는 것을 삽입하기도 하는데

이것이 아웃룩에 통할지는 잘 모르겠네요

답변을 작성하시기 전에 로그인 해주세요.
전체 207
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT