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

추천좀 부탁드릴께요.. 개발 의뢰를 하고 싶은데, 다른 분들 내용을 보지 못해서 제대로 의뢰를 할 수 있는지 알 수가 없습니다. 현재 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개

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

프로그램

+
제목 글쓴이 날짜 조회
13년 전 조회 1,154
13년 전 조회 1,669
13년 전 조회 603
13년 전 조회 2,939
13년 전 조회 641
13년 전 조회 833
13년 전 조회 629
13년 전 조회 1,007
13년 전 조회 948
13년 전 조회 1,212
13년 전 조회 736
13년 전 조회 1,802
13년 전 조회 1,442
13년 전 조회 1,033
13년 전 조회 6,708
13년 전 조회 625
13년 전 조회 998
13년 전 조회 841
13년 전 조회 982
13년 전 조회 1,264
13년 전 조회 857
13년 전 조회 1,120
13년 전 조회 708
13년 전 조회 728
13년 전 조회 1,255
13년 전 조회 3,112
13년 전 조회 686
13년 전 조회 2,109
13년 전 조회 889
13년 전 조회 791
13년 전 조회 1,680
13년 전 조회 1,606
13년 전 조회 624
13년 전 조회 1,523
13년 전 조회 1,952
13년 전 조회 1,352
13년 전 조회 609
13년 전 조회 2,023
13년 전 조회 822
13년 전 조회 602
13년 전 조회 574
13년 전 조회 1,298
13년 전 조회 1,677
13년 전 조회 1,143
13년 전 조회 632
13년 전 조회 776
13년 전 조회 1,269
13년 전 조회 1,222
13년 전 조회 556
13년 전 조회 3,357
13년 전 조회 1,217
13년 전 조회 4,387
13년 전 조회 788
13년 전 조회 1,775
13년 전 조회 840
13년 전 조회 754
13년 전 조회 1,660
13년 전 조회 632
13년 전 조회 1,597
13년 전 조회 700
13년 전 조회 1,483
13년 전 조회 1,005
13년 전 조회 4,056
13년 전 조회 2,054
13년 전 조회 881
13년 전 조회 699
13년 전 조회 1,273
13년 전 조회 902
13년 전 조회 1,034
13년 전 조회 2,128
13년 전 조회 776
13년 전 조회 2,833
13년 전 조회 2,824
13년 전 조회 1,093
13년 전 조회 791
13년 전 조회 2,332
13년 전 조회 906
13년 전 조회 1,164
13년 전 조회 694
13년 전 조회 1,819
13년 전 조회 1,113
13년 전 조회 1,167
13년 전 조회 1,515
13년 전 조회 615
13년 전 조회 3,680
13년 전 조회 920
13년 전 조회 1,805
13년 전 조회 1,301
13년 전 조회 675
13년 전 조회 4,661
13년 전 조회 531
13년 전 조회 2,651
13년 전 조회 998
13년 전 조회 665
13년 전 조회 1,032
13년 전 조회 7,801
13년 전 조회 985
13년 전 조회 2,072
13년 전 조회 1,515
13년 전 조회 1,047
🐛 버그신고