톡

php 플래시 폼메일 한글이 안되요 ㅠㅠ

안녕하세요 플래시와 php소스를 구해서 폼메일 만들고 있는데요
한글이 안되네요... php파일 수정좀 도와주세요 ㅜㅜ




<?php
// Your Email Address
$toaddress = "[email protected]";

// 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\" \"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);

?>

첨부파일

contact_form.php (2.6 KB) 8회 2008-09-30 16:26

댓글 1개

."<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"

요건 없어도 될거 같은데.. ^^;

플래쉬를 몰라서 패스
댓글을 작성하시려면 로그인이 필요합니다.

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
08-10-01 조회 727
08-09-30 조회 1,352
08-09-27 조회 795
08-09-27 조회 908
08-09-25 조회 5,218
08-09-26 조회 793
08-09-25 조회 833
08-09-24 조회 1,056
08-09-24 조회 1,913
08-09-23 조회 1,642
08-09-23 조회 884
08-09-23 조회 1,615
08-09-21 조회 832
08-09-19 조회 989
08-09-19 조회 1,113
08-09-18 조회 1,054
08-09-18 조회 916
08-09-17 조회 1,593
08-09-16 조회 1,599
08-09-10 조회 1,085