mailer 사용시 한글이 안나오는경우.... 채택완료
4번가
2년 전
조회 1,929
</p>
<p>$subject = "[".$config['cf_title']."]".$_POST['con_subject'];
$file = "";</p>
<p>$content = "";
$content .= $_POST['customer'];
$content .= "\n";
$content .= "\n";
$content .= "First Name: ";
$content .= $_POST['con_name1'];
$content .= "\n";
$content .= "Last Name: ";
$content .= $_POST['con_name2'];
$content .= "\n";
$content .= "\n";
$content .= "Phone: ";
$content .= $_POST['con_phone'];
$content .= "\n";
$content .= "\n";
$content .= "Email: ";
$content .= $_POST['con_email'];
$content .= "\n";
$content .= "\n";
$content .= "Subject: ";
$content .= $_POST['con_subject'];
$content .= "\n";
$content .= "\n";
$content .= "Inquiry: ";
$content .= "\n";
$content .= $_POST['con_content'];
$content .= "\n";</p>
<p>$type = 1;</p>
<p>$content = stripslashes($content);
$content = str_replace("\n", "
", $content);</p>
<p>$current_url = G5_URL;
$mail_content = '<!doctype html><html lang="kr"><head><meta charset="utf-8"><title>Contact Me</title><link rel="stylesheet" href="'.$current_url.'/style.css"></head><body>'.$content.'</body></html></p>
<p>mailer($fnick, $fmail, $to, $subject, $mail_content, $type, $file);
</p>
<p>
mailer로 이메일 발송시
$content 의 $_post의 내용이 영물일경우 이상없는데...
한글일경우엔 이메일에

이런식으로 나오지를 안네요...
발송전 echo $content 시
이상은 없는데.. 어떻게 해야할까요???
댓글을 작성하려면 로그인이 필요합니다.
답변 2개
답변에 대한 댓글 1개
4
4번가
2년 전
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
답변감사합니다.