폼메일 지메일이 수신이 안됩니다
본문
<?php
include_once('./_common.php');
define("_INDEX_", TRUE);
include_once(G5_THEME_MSHOP_PATH.'/shop.head.php');
include_once(G5_LIB_PATH.'/mailer.lib.php');
?>
<div class="counsel">
<?if($flag == 'send') {
$mail_content = "
<br>이름 : $name
<br>메일 : $mail
<br>문의 : $category
<br>휴대폰 : $phone
<br>내용 : ".nl2br($contents);
$file = array();
if ($_FILES['file1']['name']) {
$file[] = attach_file($_FILES['file1']['name'], $_FILES['file1']['tmp_name']);
}
$subject = "문의합니다.";
$type = 1;
$fnick = $name;
$fmail = $mail;
$to = $config['cf_admin_email'];
mailer($fnick, $fmail, $to, $subject, $mail_content, $type, $file);
alert('내용이 전달되었습니다. \n\n확인 후 연락드리겠습니다.',$PHP_SELF);
}
?>
<script type="text/javascript">
function setEmailDom(obj1, obj2) {
obj1.email2.value = obj2;
}
</script>
<!-- pc-->
<div class="tbl_frm01 tbl_wrap">
<form method='post' action='<?=$PHP_SELF?>' enctype="multipart/form-data">
<input type='hidden' name='flag' value='send'>
<table>
<tr>
<th scope="row"><label for="user_name2">NAME</label></th>
<td><input name="name" type="text" size="20" id="name" class="frm_input required" style="width:60%;" required itemname='이름'/></td>
</tr>
<tr>
<th scope="row">CATEGORY</th>
<td><select name="category" id="category">
<option value="General Inquiry">General Inquiry</option>
<option value="Account">Account</option>
<option value="Shipping Delivery">Shipping Delivery</option>
<option value="Defective & Damaged Products">Defective & Damaged Products</option>
</select></td>
</tr>
<tr>
<th scope="row"><label for="email">E-Mail Address</label></th>
<td><input name="mail" type="text" size="20" id="leter" class="frm_input required" style="width:60%;" required itemname='메일'/></td>
</tr>
<tr>
<th scope="row">PHONE</th>
<td><input name="phone" type="text" title="폰" maxlength="15" id="phone" class="frm_input required" size="10" style="width:60%" required itemname='폰'></td>
</tr>
<tr>
<th scope="row">CONTENT</th>
<td><div style="color:red;line-height:22px;">
<textarea name="contents" style="height:200px;" class="frm_input" ></textarea>
</div></td>
</tr>
</table>
<br />
<div style="height:50px; line-height:15px; padding-bottom:30px; text-align:center;">
<input type="submit" value="SEND" accesskey="s" class="btn_submit">
<a href="/index.html" class="btn_cancel">CANCEL</a> </div>
</form>
</div>
네이버는 잘들어오는데 구글 지메일에서 수신이 안되네요
뭐가 문제일까요?