\n"; $additional .= "Reply-To: \"$writer\" <$email>\n"; $additional .= "Content-Type: text;charset=EUC-KR"; mail($receiver, $subject, $contents, $additional); } function htmlemail($receiver, $subject, $contents, $writer, $email) { // html Çü½ÄÀÇ ¸ÞÀÏÀ» º¸³½´Ù. // $receiver : ¹Þ´Â ÀÌ(µé: ½°Ç¥·Î ±¸ºÐ) // $subject : Á¦¸ñ // $contents : ³»¿ë // $writer : ±Û¾´ÀÌ // $writer : ±Û¾´ÀÌ email global $HTTP_HOST; global $PHP_SELF; $contents .= "\n\n==============================This mail comes from\nhttp://$HTTP_HOST$PHP_SELF"; $contents = nl2br($contents); $additional = "From: \"$writer\" <$email>\n"; $additional .= "Reply-To: \"$writer\" <$email>\n"; $additional .= "Content-Type: text/html;charset=EUC-KR"; mail($receiver, $subject, $contents, $additional); } function encodeEmail($mail) { // 2001-09-20 18:32 ¼¼¿ø ( s e w o n a @ y a h o o . c o m ) $encodedEmail = array ( "a" =>"a", "b" => "b", "c" => "c", "d" => "d", "e" => "e", "f" =>"f", "g" => "g", "h" => "h", "i" => "i", "j" => "j", "k" =>"k", "l" => "l", "m" => "m", "n" => "n", "o" => "o", "p" =>"p", "q" => "q", "r" => "r", "s" => "s", "t" => "t", "u" =>"u", "v" => "v", "w" => "w", "x" => "x", "y" => "y", "z" =>"z", ":" => ":", "." => ".", "_" => "_", "@" => "@", "0" =>"0", "1" => "1", "2" => "2", "3" => "3", "4" => "4", "5" =>"5", "6" => "6", "7" => "7", "8" => "8", "9" => "9" ); $max = strlen($mail); for($i = 0; $i < $max; $i++) { $changeMail = $encodedEmail[$mail[$i]]; $returnMail = $returnMail.$changeMail; } return $returnMail; } ?>