php 플래시 폼메일 한글이 안되요 ㅠㅠ 정보
php 플래시 폼메일 한글이 안되요 ㅠㅠ본문
안녕하세요 플래시와 php소스를 구해서 폼메일 만들고 있는데요
한글이 안되네요... php파일 수정좀 도와주세요 ㅜㅜ
<?php
// Your Email Address
$toaddress = "master@d-flo.com";
// Subjects
if (empty($_POST['Subject'])) {
$subject = 'No Subject';
} elseif ($_POST['Subject'] == '1') {
$subject = 'Feedback';
} elseif ($_POST['Subject'] == '2') {
$subject = 'Suggestion';
} elseif ($_POST['Subject'] == '3') {
$subject = 'Registration';
} elseif ($_POST['Subject'] == '4') {
$subject = 'Other';
}
// Sender Information
$fromname = $_POST['Name'] . ' ' . $_POST['Surname'];
$fromaddress = $_POST['Email'];
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
// Please do not replace //
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
// Message
$message = nl2br($_POST['Message']);
// Content
$mailcontent = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"\n'>http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n"
."<html dir=\"ltr\" lang=\"tr\">\n"
."<head>\n"
."<title>".$subject."</title>\n"
."<META HTTP-EQUIV=\"Pragma\" CONTENT=\"no-cache\" />\n"
."<META HTTP-EQUIV=\"Expires\" CONTENT=\"-1\" />\n"
."<META HTTP-EQUIV=\"Cache-Control\" CONTENT=\"no-cache\" />\n"
."<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\" />\n"
."<style type=\"text/css\" media=\"all\">\n"
."body\n"
."{\n"
." color: #333333;\n"
." font-size: 12px;\n"
." font-family: 굴림,굴림체,바탕,바탕체;\n"
." margin: 2ex;\n"
." text-align: left;\n"
." background-color: #FFFFFF;\n"
."}\n"
."\n"
."a:link, a:visited\n"
."{\n"
." color: #FF6600;\n"
." text-decoration: none;\n"
." font-weight: bold;\n"
." font-size: 12px;\n"
." font-family: 굴림,굴림체,바탕,바탕체;\n"
."}\n"
."\n"
."a:hover\n"
."{\n"
." color: #336699;\n"
." text-decoration: none;\n"
." font-weight: bold;\n"
." font-size: 12px;\n"
." font-family: 굴림,굴림체,바탕,바탕체;\n"
."}\n"
."\n"
."</style>\n"
."</head>\n"
."<body>\n"
."\n"
."".$message."\n"
."\n"
."</BODY>\n"
."</HTML>\n";
// E-mail Headers
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=euc-kr\n";
$headers .= "X-Priority: 3\n";
$headers .= "X-MSMail-Priority: Normal\n";
$headers .= "X-Mailer: D-FLO Inc.\n";
$headers .= "From: \"".$fromname."\" <".$fromaddress.">\n";
// Send it.
@mail($toaddress, $subject, $mailcontent, $headers);
?>
댓글 전체
."<META HTTP-EQUIV=\"Expires\" CONTENT=\"-1\" />\n"
."<META HTTP-EQUIV=\"Cache-Control\" CONTENT=\"no-cache\" />\n"
."<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\" />\n"
요건 없어도 될거 같은데.. ^^;
플래쉬를 몰라서 패스