폼메일 파일첨부가 안되요;; 정보
폼메일 파일첨부가 안되요;;본문
여기서 팁을 얻어서 폼메일을 직접만들어서 아래같은 소스로 파일을 만들었어요...
근데 다 잘되고 메일도 정상적으로 오는데 파일첨부가 안되네요...
메일확인 하면 그냥 경로만 오고 파일이 안오는데 어떻게 해야하나요?
파일이름을 저장할 수 있는 다른 무언가가 필요한가요????
<?
$mail_to='*** 개인정보보호를 위한 이메일주소 노출방지 ***';; // 받는 사람 이메일주소를 입력하세요.
$name_to='주문의뢰'; // 받는 사람 이름을 입력하세요.
$mail_subject='[DVD 주문의뢰] '.date("Y-m-d H:i:s"); // 전송될 메일의 제목을 입력해주세요.
$url='http://www.aaa.com'; // 메일 발송후 이동할 페이지
$mail_to='*** 개인정보보호를 위한 이메일주소 노출방지 ***';; // 받는 사람 이메일주소를 입력하세요.
$name_to='주문의뢰'; // 받는 사람 이름을 입력하세요.
$mail_subject='[DVD 주문의뢰] '.date("Y-m-d H:i:s"); // 전송될 메일의 제목을 입력해주세요.
$url='http://www.aaa.com'; // 메일 발송후 이동할 페이지
// 메일의 기본 내용입니다.
$body='';
$body='';
if ( $act == "sandmail") {
reset($_POST);
$i=0;
$mail_body='';
while(list($key,$value)=each($_POST)) {
if($key=='act') continue;
$i++;
$key = str_replace('_',' ',$key);
$value = stripslashes($value);
$mail_body .= "$i. $key : $value\n";
}
reset($_POST);
$i=0;
$mail_body='';
while(list($key,$value)=each($_POST)) {
if($key=='act') continue;
$i++;
$key = str_replace('_',' ',$key);
$value = stripslashes($value);
$mail_body .= "$i. $key : $value\n";
}
$header = "FROM: $name_to<$mail_to>\n" .
"REPLAY-TO: $mail_to\n" .
"MIME-Version: 1.0\n" .
"X-Mailer: RGRO.NET\n".
"Content-Type: text/plain;charset=euc-kr\n" .
"Content-Transfer-Encoding: 8bit";
$mail_body=stripslashes($mail_body);
mail("$name_to<$mail_to>", $mail_subject, $mail_body, $header);
?>
"REPLAY-TO: $mail_to\n" .
"MIME-Version: 1.0\n" .
"X-Mailer: RGRO.NET\n".
"Content-Type: text/plain;charset=euc-kr\n" .
"Content-Transfer-Encoding: 8bit";
$mail_body=stripslashes($mail_body);
mail("$name_to<$mail_to>", $mail_subject, $mail_body, $header);
?>
<HTML><HEAD>
<META HTTP-EQUIV=Content-Type CONTENT=text/html;charset=euc-kr>
<SCRIPT LANGUAGE=JavaScript>
<!--
location.href='<?=$url?>';
//-->
</SCRIPT></html>
<?
exit;
}
?>
<META HTTP-EQUIV=Content-Type CONTENT=text/html;charset=euc-kr>
<SCRIPT LANGUAGE=JavaScript>
<!--
location.href='<?=$url?>';
//-->
</SCRIPT></html>
<?
exit;
}
?>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<TABLE BORDER=0 WIDTH=581
<TABLE BORDER=0 WIDTH=581
CELLSPACING=1 CELLPADDING=3 ALIGN=CENTER>
<FORM method=post name=mail_message>
<INPUT name=act type=hidden value=sandmail>
<tr valign="top" bgcolor="#FFFFFF">
<td height="81" colspan="2">
<p
<FORM method=post name=mail_message>
<INPUT name=act type=hidden value=sandmail>
<tr valign="top" bgcolor="#FFFFFF">
<td height="81" colspan="2">
<p
align="left"> <font color="#6699FF" size="2" face="굴림"><strong> </strong></font></p>
<p
<p
align="left"><strong><font size="2"> </font></strong> <img src="../../copycopy/www/img/order/suport_icon_01.gif" width="200" height="40"></p></td>
</tr>
</tr>
중간생략
<tr>
<td width="109" align="center">
<div align="center"></div></td>
<td> </td>
</tr>
<tr>
<td width="130" bgcolor="#D8C7DC"><div align="center" class="style1"><strong>파일첨부</strong></div></td>
<td bgcolor="#E6E6E6"><input name="file" type="file" size="27"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="171" align="center" bgcolor="#FFFFFF"> <p align="center" class="style7"><font color="#333333" size="2">기타
주문사항 </font></p></td>
<td height="171"> <p align="left">
<textarea name="기타 주문사항"
cols="50" rows="8" id="기타 주문사항" style="border:1 solid #999999; BACKGROUND-COLOR: rgb(240,240,240); "><?=$body?>
</textarea>
</p></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="24" colspan="2"> <p
align="center">
<input name="submit" type="submit" value='입력완료' style="border:1 solid #999999;">
<INPUT name="RESET" TYPE=RESET VALUE="다시쓰기" style="border:1 solid #999999;">
</p></td>
</tr>
<TR align="center" valign="bottom" bgcolor="#FFFFFF">
<TD height=38 colSpan=2><br> </TD>
</TR>
</form>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="20" valign="top"> <br>
</td>
</tr>
<input name="submit" type="submit" value='입력완료' style="border:1 solid #999999;">
<INPUT name="RESET" TYPE=RESET VALUE="다시쓰기" style="border:1 solid #999999;">
</p></td>
</tr>
<TR align="center" valign="bottom" bgcolor="#FFFFFF">
<TD height=38 colSpan=2><br> </TD>
</TR>
</form>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="20" valign="top"> <br>
</td>
</tr>
댓글 전체