행

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

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

2012-02-24 (금) 00:52:09
추천합니다.
댓글을 작성하시려면 로그인이 필요합니다.

개발자팁

5,403건

개발과 관련된 유용한 정보를 공유하세요. 질문은 QA에서 해주시기 바랍니다.

+
분류 제목 글쓴이 날짜 조회
node.js 12-02-22 조회 4,215
PHP 12-02-21 조회 2,206
PHP 12-02-20 조회 2,773
jQuery 12-02-20 조회 2,805
PHP 12-02-20 조회 2,150
PHP 12-02-20 조회 7,109
PHP 12-02-20 조회 2,885
jQuery 12-02-20 조회 8,137
PHP 12-02-19 조회 2,515
PHP 12-02-18 조회 2,284
JavaScript 12-02-18 조회 3,580
PHP 12-02-17 조회 3,571
node.js 12-02-17 조회 3,052
node.js 12-02-17 조회 6,499
Flash 12-02-17 조회 4,511
JavaScript 12-02-17 조회 1,975
Linux 12-02-17 조회 1,774
JavaScript 12-02-17 조회 2,436
Flash 12-02-16 조회 4,472
Linux 12-02-16 조회 2,095
MySQL 12-02-16 조회 6,690
기타 12-02-16 조회 4,789
PHP 12-02-15 조회 2,136
MySQL 12-02-15 조회 4,312
웹서버 12-02-15 조회 4,867
JavaScript 12-02-14 조회 2,872
Linux 12-02-14 조회 3,502
Linux 12-02-14 조회 2,203
node.js 12-02-14 조회 8,197
PHP 12-02-14 조회 2,756