ºÐ¾ß $textfield5
ȸ»çÀ̸§ $textfield
ȸ»çÁÖ¼Ò $textfield2
ȸ»çȨÆäÀÌÁö $textfield3
ȸ»çTEL $textfield4 - $textfield42 - $textfield43
ȸ»çFAX $textfield44 - $textfield422 - $textfield432
´ã´çÀÚ $textfield22
´ã´çÀÚ À̸ÞÀÏ $textfield23
´ã´çÀÚ ÈÞ´ëÆù $textfield442 - $textfield4222 - $textfield4322
ȸ»ç¼Ò°³ $textfield222
»ç¾÷Á¦ÈÞÁ¦¸ñ $textfield223
»ç¾÷Á¦ÈÞ³»¿ë $textarea
±âŸ $textarea2
"; if ($userfile && $userfile_size) { //userfileÀº ÀÌÀüÆäÀÌÁö¿¡¼­ ÷ºÎÇÑ ÆÄÀÏÀ̸§ÀÔ´Ï´Ù. $filename=basename($userfile_name); $result=fopen($userfile,"r"); $file=fread($result,$userfile_size); fclose($result); if ($userfile_type == ""){ $userfile_type = "application/octet-stream"; } $boundary = "--------" . uniqid("part"); $mailheaders .= "MIME-Version: 1.0\r\n"; $mailheaders .= "Content-Type: multipart/mixed; boundary=\"$boundary\""; $bodytext = "This is a multi-part message in MIME format.\r\n\r\n"; $bodytext .= "--$boundary\r\n"; $bodytext .= "Content-Type: text/html; charset=euc-kr\r\n"; $bodytext .= "Content-Transfer-Encoding: 8bit\r\n\r\n"; $bodytext .= nl2br($content) . "\r\n\r\n"; $bodytext .= "--$boundary\r\n"; $bodytext .= "Content-Type: $userfile_type; name=\"$filename\"\r\n"; $bodytext .= "Content-Transfer-Encoding: base64\r\n\r\n"; $bodytext .= ereg_replace("(.{80})","\\1\r\n",base64_encode($file)); $bodytext .= "\r\n--$boundary" . "\r\n"; } else { $mailheaders .= "Content-Type: text/html; charset=euc-kr\r\n"; $bodytext .= nl2br($content) . "\r\n\r\n"; } $mailheaders.= "From:$textfield22<$textfield23>\n"; // ¸ÞÀÏ º¸³»´Â »ç¶÷ $mailheaders.= "Return-Path:$textfield22<$textfield23>\n"; mail($toemail,$textfield223,$bodytext,$mailheaders); $mailheaders=""; // Çì´õ ÃʱâÈ­ echo ""; // ¸®½ºÆ®ÆäÀÌÁö·Î À̵¿ÇÑ´Ù echo ""; ?>