\n"; $additional .= "Reply-To: \"$writer\" <$email>\n"; $additional .= "Content-Type: text;charset=EUC-KR"; mail($receiver, $subject, $contents, $additional); } function squarehtmlemail($receiver, $subject, $contents, $writer, $email, $bid = 1) { // html Çü½ÄÀÇ ¸ÞÀÏÀ» º¸³½´Ù. // $receiver : ¹Þ´Â ÀÌ(µé: ½°Ç¥·Î ±¸ºÐ) // $subject : Á¦¸ñ // $contents : ³»¿ë // $writer : ±Û¾´ÀÌ // $writer : ±Û¾´ÀÌ email // $bid : °Ô½ÃÆÇ ¹øÈ£ global $HTTP_HOST; global $PHP_SELF; $contents .= "\n\n==============================This mail comes from\nhttp://$HTTP_HOST$PHP_SELF?bid=$bid"; $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); } ## Program Dependent Functions #################################################################### ?>