이메일 한글 깨짐 처리입니다.

추천좀 부탁드릴께요.. 개발 의뢰를 하고 싶은데, 다른 분들 내용을 보지 못해서 제대로 의뢰를 할 수 있는지 알 수가 없습니다. 현재 15포인트 부족한데, 추천좀 부탁드릴께요.. 추천하시는 분들 복받으실 겁니다.
 

function send_mail($to_email,$from_email,$form_name,$subject,$mybody,$type) {
        //$charset='EUC-KR';
        $charset='UTF-8';
        if( $charset !='UTF-8' )
                $encoded_body = iconv('UTF-8', $charset, str_replace("UTF-8", $charset, $mybody));
        else
                $encoded_body = $mybody;
        $from = "\"=?".$charset."?B?".base64_encode($form_name)."?=\" <".$from_email.">" ; // 인코딩된 보내
는이
        $encoded_subject = "=?".$charset."?B?".base64_encode($subject)."?=\n";
        $headers = "MIME-Version: 1.0\r\n";
        $header .= "Content-Type: text/html;charset=$charset;format=flowed\n";
        $header .= "Content-Transfer-Encoding: 8bit\n";
        $header .= "From: $from\n";
        $header .= "Return-Path: $from\n";
        $mybody = stripslashes($mybody);
  @mail($to_email, $encoded_subject,$encoded_body,$header);
|

댓글 1개

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

팁게시판

디자인과 관련된 유용한 정보를 공유하세요. 질문은 상단의 QA에서 해주시기 바랍니다.

+
제목 글쓴이 날짜 조회
13년 전 조회 1,489
13년 전 조회 1,924
13년 전 조회 4,222
13년 전 조회 1,318
13년 전 조회 1,995
가나다라마바사아자차카타파하
13년 전 조회 578
13년 전 조회 1,241
13년 전 조회 1,609
13년 전 조회 749
13년 전 조회 1,235
13년 전 조회 1,194
가나다라마바사아자차카타파하
13년 전 조회 534
13년 전 조회 3,313
13년 전 조회 1,181
13년 전 조회 4,322
13년 전 조회 1,729
13년 전 조회 801
13년 전 조회 721
13년 전 조회 1,627
13년 전 조회 1,555
13년 전 조회 1,450
13년 전 조회 979
13년 전 조회 4,024
13년 전 조회 2,017
13년 전 조회 850
🐛 버그신고