코드/PHP

[PHP] mail() 함수 한글 깨짐

Yeah-Panda 2015. 6. 22. 14:51

$to = 'abc@naver.com'; $charset = 'UTF-8'; $subject="=?".$charset."?B?".base64_encode('이건 깨지지 않어')."?="; $cc = 'wwwholakr@gmail.com'; $bcc = 'email@email.com'; mail($to, $subject, $msg, 'From : '.$email."\r\nCc:".$cc);


'Form : .'$from 다음에

참조 : "\r\nCc:".$cc

비밀참조 : "\r\nBcc : ".$bcc