폼메일에서 메일 보내기 문의 입니다. 정보
폼메일에서 메일 보내기 문의 입니다.본문
제가 사용하는 폼메일 스킨 소스가 아래와 같습니다
--------------------------------------------
<input type="hidden" name="attach" value="2">
<select name="email" class="select1" required itemname='이메일'>
<option value='' selected>선택</option>
<option value='*** 개인정보보호를 위한 이메일주소 노출방지 ***';>웹디자이너</option>
</select>
<select name="email" class="select1" required itemname='이메일'>
<option value='' selected>선택</option>
<option value='*** 개인정보보호를 위한 이메일주소 노출방지 ***';>웹디자이너</option>
</select>
--------------------------------------------------------------------------
옵션으로 골라서 보낼수 있게 되어있는데요..
옵션으로 고르지 않고 메일로 바로 보내고 싶습니다.
그렇게 하려면 소스를 어떻게 수정해야 하나요??
폼메일 작성 완료후 혹시 메일이 두군데로 자동으로 갈수 있게 할수도 있나요??
혹시 몰라서 폼메일 전체 소스 올리겠습니다..
------------------------------------------------------------------------------
<?
include_once("./_common.php");
include_once("$g4[path]/franchise05_h.php");
?>
<table style="border-collapse:collapse;" cellpadding="0" cellspacing="0" width="100%" align="center">
<tr>
<td width="100%">
include_once("./_common.php");
include_once("$g4[path]/franchise05_h.php");
?>
<table style="border-collapse:collapse;" cellpadding="0" cellspacing="0" width="100%" align="center">
<tr>
<td width="100%">
<!-- 컨텐츠 시작 -->
<table bgcolor="#f4f5eb" style="border-collapse:collapse;" cellpadding="5" cellspacing="0" width="100%" align="center" style="padding-left:8;" style="border-top-width:1; border-right-width:1; border-bottom-width:1; border-left-width:1; border-color:#D4D4D4; border-top-style:solid; border-left-style:solid; border-bottom-style:solid; border-right-style:solid;">
<tr><td bgcolor="#f4f5eb" style="padding-left:8;" width="540" height="5"></td></tr>
<form name="fformmail" method="post" action="javascript:fformmail_submit(document.fformmail);" enctype="multipart/form-data">
<table bgcolor="#f4f5eb" style="border-collapse:collapse;" cellpadding="5" cellspacing="0" width="100%" align="center" style="padding-left:8;" style="border-top-width:1; border-right-width:1; border-bottom-width:1; border-left-width:1; border-color:#D4D4D4; border-top-style:solid; border-left-style:solid; border-bottom-style:solid; border-right-style:solid;">
<tr><td bgcolor="#f4f5eb" style="padding-left:8;" width="540" height="5"></td></tr>
<form name="fformmail" method="post" action="javascript:fformmail_submit(document.fformmail);" enctype="multipart/form-data">
<tr height="25" bgcolor="#f4f5eb">
<td bgcolor="#f4f5eb" style="padding-left:8;" width="20%" align="left"><b>수신자 선택</b></td>
<td bgcolor="#f4f5eb" style="padding-left:8;" width="20%" align="left"><b>수신자 선택</b></td>
<td bgcolor="#f4f5eb" style="padding-left:8;" width="80%">
<input type="hidden" name="attach" value="2">
<select name="email" class="select1" required itemname='이메일'>
<option value='' selected>선택</option>
<option value='*** 개인정보보호를 위한 이메일주소 노출방지 ***';>웹디자이너</option>
</select>
<input type="hidden" name="attach" value="2">
<select name="email" class="select1" required itemname='이메일'>
<option value='' selected>선택</option>
<option value='*** 개인정보보호를 위한 이메일주소 노출방지 ***';>웹디자이너</option>
</select>
<br>
</td></tr>
</table>
<table bgcolor="#f4f5eb" style="border-collapse:collapse;" cellpadding="5" cellspacing="0" width="100%" align="center" style="border-top-width:1; border-right-width:1; border-bottom-width:1; border-left-width:1; border-color:#D4D4D4; border-top-style:solid; border-left-style:solid; border-bottom-style:solid; border-right-style:solid;">
<tr><td bgcolor="#f4f5eb" style="padding-left:8;" width="540" height="5"></td></tr>
<? if ($is_member) { // 회원이면 ?>
<input type='hidden' name='fnick' value='<?=$member[mb_nick]?>'>
<input type='hidden' name='fmail' value='<?=$member[mb_email]?>'>
<tr><td bgcolor="#f4f5eb" style="padding-left:8;" width="540" height="5"></td></tr>
<? if ($is_member) { // 회원이면 ?>
<input type='hidden' name='fnick' value='<?=$member[mb_nick]?>'>
<input type='hidden' name='fmail' value='<?=$member[mb_email]?>'>
<? } else { ?>
<tr height="25">
<td bgcolor="#f4f5eb" style="padding-left:8;" width="20%" align="left"><b>발신자 이름</b></td>
<td bgcolor="#f4f5eb" style="padding-left:8;" width="80%"><input type=text name='fnick' style="width:95%; border-width:1; border-color:rgb(204,204,204); border-style:solid;" required minlength=2 itemname='이름'>
<tr height="25">
<td bgcolor="#f4f5eb" style="padding-left:8;" width="20%" align="left"><b>발신자 이름</b></td>
<td bgcolor="#f4f5eb" style="padding-left:8;" width="80%"><input type=text name='fnick' style="width:95%; border-width:1; border-color:rgb(204,204,204); border-style:solid;" required minlength=2 itemname='이름'>
<br></td>
</tr>
<tr><td height="1" colspan="2" bgcolor="#B0B0B0"></td>
</tr>
<tr><td colspan="2" height="1" bgcolor="#FFFFFF"></td>
</tr>
<tr height="25">
<td bgcolor="#f4f5eb" style="padding-left:8;" width="20%" align="left"><b>발신자 이메일</b></td>
<td bgcolor="#f4f5eb" style="padding-left:8;" width="80%"><input type=text name='fmail' style="width:95%; border-width:1; border-color:rgb(204,204,204); border-style:solid;" required email itemname='E-mail'>
<br>
</td>
</tr height="25">
<? } ?>
<tr><td height="1" colspan="2" bgcolor="#B0B0B0"></td>
</tr>
<tr><td colspan="2" height="1" bgcolor="#FFFFFF"></td>
</tr>
<tr height="25">
<td bgcolor="#f4f5eb" style="padding-left:8;" width="20%" align="left"><strong>연락처/휴대폰</strong></td>
<td bgcolor="#f4f5eb" style="padding-left:8;" width="80%"><input type=text name='subject' style="width:95%; border-width:1; border-color:rgb(204,204,204); border-style:solid;" required itemname='제목'></td>
</tr>
<tr><td height="1" colspan="2" bgcolor="#B0B0B0"></td>
</tr>
<tr><td colspan="2" height="1" bgcolor="#FFFFFF"></td>
</tr>
<tr height="25">
<td bgcolor="#f4f5eb" style="padding-left:8;" width="20%" align="left"><b>내용 입력</b></td>
<td bgcolor="#f4f5eb" style="padding-left:8;" width="80%"><input type='radio' name='type' value='0' checked> Text <input type='radio' name='type' value='1' > Html <input type='radio' name='type' value='2' > Text+Html</td>
</tr>
<tr><td height="1" colspan="2" bgcolor="#B0B0B0"></td>
</tr>
<tr><td colspan="2" height="1" bgcolor="#FFFFFF"></td>
</tr>
<tr height="25">
<td bgcolor="#f4f5eb" style="padding-left:8;" width="20%" align="left"><b>내용</b></td>
<td bgcolor="#f4f5eb" style="padding-left:8;" width="80%"><textarea name="content" rows='20' style="width:95%; border-width:1; border-color:rgb(204,204,204); border-style:solid;" required itemname='내용'></textarea></td>
</tr>
<tr><td height="1" colspan="2" bgcolor="#B0B0B0"></td>
</tr>
<tr><td colspan="2" height="1" bgcolor="#FFFFFF"></td>
</tr>
<tr height="25">
<td bgcolor="#f4f5eb" style="padding-left:8;" width="20%" align="left"><b>첨부화일1</b></td>
<td bgcolor="#f4f5eb" style="padding-left:8;" width="80%"><input type=file name='file1' style="width:95%; border-width:1; border-color:rgb(204,204,204); border-style:solid;"></td>
</tr>
<tr height="25">
<td bgcolor="#f4f5eb" style="padding-left:8;" width="20%" align="left"><b>첨부화일2</b></td>
<td bgcolor="#f4f5eb" style="padding-left:8;" width="80%"><input type=file name='file2' style="width:95%; border-width:1; border-color:rgb(204,204,204); border-style:solid;"></td>
</tr>
</table>
</tr>
<tr><td height="1" colspan="2" bgcolor="#B0B0B0"></td>
</tr>
<tr><td colspan="2" height="1" bgcolor="#FFFFFF"></td>
</tr>
<tr height="25">
<td bgcolor="#f4f5eb" style="padding-left:8;" width="20%" align="left"><b>발신자 이메일</b></td>
<td bgcolor="#f4f5eb" style="padding-left:8;" width="80%"><input type=text name='fmail' style="width:95%; border-width:1; border-color:rgb(204,204,204); border-style:solid;" required email itemname='E-mail'>
<br>
</td>
</tr height="25">
<? } ?>
<tr><td height="1" colspan="2" bgcolor="#B0B0B0"></td>
</tr>
<tr><td colspan="2" height="1" bgcolor="#FFFFFF"></td>
</tr>
<tr height="25">
<td bgcolor="#f4f5eb" style="padding-left:8;" width="20%" align="left"><strong>연락처/휴대폰</strong></td>
<td bgcolor="#f4f5eb" style="padding-left:8;" width="80%"><input type=text name='subject' style="width:95%; border-width:1; border-color:rgb(204,204,204); border-style:solid;" required itemname='제목'></td>
</tr>
<tr><td height="1" colspan="2" bgcolor="#B0B0B0"></td>
</tr>
<tr><td colspan="2" height="1" bgcolor="#FFFFFF"></td>
</tr>
<tr height="25">
<td bgcolor="#f4f5eb" style="padding-left:8;" width="20%" align="left"><b>내용 입력</b></td>
<td bgcolor="#f4f5eb" style="padding-left:8;" width="80%"><input type='radio' name='type' value='0' checked> Text <input type='radio' name='type' value='1' > Html <input type='radio' name='type' value='2' > Text+Html</td>
</tr>
<tr><td height="1" colspan="2" bgcolor="#B0B0B0"></td>
</tr>
<tr><td colspan="2" height="1" bgcolor="#FFFFFF"></td>
</tr>
<tr height="25">
<td bgcolor="#f4f5eb" style="padding-left:8;" width="20%" align="left"><b>내용</b></td>
<td bgcolor="#f4f5eb" style="padding-left:8;" width="80%"><textarea name="content" rows='20' style="width:95%; border-width:1; border-color:rgb(204,204,204); border-style:solid;" required itemname='내용'></textarea></td>
</tr>
<tr><td height="1" colspan="2" bgcolor="#B0B0B0"></td>
</tr>
<tr><td colspan="2" height="1" bgcolor="#FFFFFF"></td>
</tr>
<tr height="25">
<td bgcolor="#f4f5eb" style="padding-left:8;" width="20%" align="left"><b>첨부화일1</b></td>
<td bgcolor="#f4f5eb" style="padding-left:8;" width="80%"><input type=file name='file1' style="width:95%; border-width:1; border-color:rgb(204,204,204); border-style:solid;"></td>
</tr>
<tr height="25">
<td bgcolor="#f4f5eb" style="padding-left:8;" width="20%" align="left"><b>첨부화일2</b></td>
<td bgcolor="#f4f5eb" style="padding-left:8;" width="80%"><input type=file name='file2' style="width:95%; border-width:1; border-color:rgb(204,204,204); border-style:solid;"></td>
</tr>
</table>
<table width=100% style="border-top-width:1; border-right-width:1; border-bottom-width:1; border-left-width:1; border-color:#D4D4D4; border-top-style:solid; border-left-style:solid; border-bottom-style:solid; border-right-style:solid;"><tr>
<td bgcolor="#f4f5eb" style="padding-left:8;" height="40" align="center">
<input id=btn_submit type=image src="img/btn_send.gif" border="0">
<a href="<?=$g4[path]?>"><img src="img/btn_close.gif" border="0"></a>
</td>
</tr>
</form>
</table>
<!-- 컨텐츠 끝 -->
<td bgcolor="#f4f5eb" style="padding-left:8;" height="40" align="center">
<input id=btn_submit type=image src="img/btn_send.gif" border="0">
<a href="<?=$g4[path]?>"><img src="img/btn_close.gif" border="0"></a>
</td>
</tr>
</form>
</table>
<!-- 컨텐츠 끝 -->
</td>
</tr>
</table>
</tr>
</table>
<script language="JavaScript">
with (document.fformmail) {
if (typeof fname != "undefined")
fname.focus();
else if (typeof subject != "undefined")
subject.focus();
}
with (document.fformmail) {
if (typeof fname != "undefined")
fname.focus();
else if (typeof subject != "undefined")
subject.focus();
}
function fformmail_submit(f)
{
if (f.file1.value || f.file2.value) {
// 4.00.11
if (!confirm("첨부파일의 용량이 큰 경우 전송시간이 오래 걸립니다.\n\n메일보내기가 완료되기 전에 창을 닫거나 새로고침 하지 마십시오."))
return;
}
{
if (f.file1.value || f.file2.value) {
// 4.00.11
if (!confirm("첨부파일의 용량이 큰 경우 전송시간이 오래 걸립니다.\n\n메일보내기가 완료되기 전에 창을 닫거나 새로고침 하지 마십시오."))
return;
}
document.getElementById('btn_submit').disabled = true;
f.action = "./formmail_send.contacts.php";
f.submit();
}
</script>
f.submit();
}
</script>
<?
include_once("$g4[path]/foryou25_f.php");
?>
include_once("$g4[path]/foryou25_f.php");
?>
댓글 전체
옵션선택부분은
<input type="hidden" name="email" value="수신자1">
<input type="hidden" name="cc" value="수신자2">
<input type="hidden" name="bcc" value="수신자3">
formmail_send.contacts.php파일에
mailer($fnick, $fmail, $email, $subject, $content, $type, $file ,$cc, $bcc);
$cc,$bcc추가해주시면 될것 같네요.
<input type="hidden" name="email" value="수신자1">
<input type="hidden" name="cc" value="수신자2">
<input type="hidden" name="bcc" value="수신자3">
formmail_send.contacts.php파일에
mailer($fnick, $fmail, $email, $subject, $content, $type, $file ,$cc, $bcc);
$cc,$bcc추가해주시면 될것 같네요.
hidden으로 하면 됐었군요^^ 정말 감사합니다^^