2026, 새로운 도약을 시작합니다.

메일발송에 대해 질문있습니다! 채택완료

안녕하십니까 고수님들 

하루하루 실력부족으로 늙어가는 고급지게 입니다..

지금 현재 메일발송 폼을 만들어서 쓰고있는데요

메일이 gmail에서는 자동으로 스팸처리를 해버리는데..

현재 네이버 다음 등등 국내 이메일은 잘 오고 있습니다ㅠㅠ

영카트 결제 후 주문내역 안내메일은 안걸러지고 잘 오더라구요ㅠㅠ

제가 만든 메일 폼이랑 주문내역 폼이랑 무슨 차이 일까요 ?

지메일에선 

'emailaddress'에서 보낸 메일이 아닐 가능성이 있습니다. 라고 떠요ㅠㅠ


살려주세요


<?php
define('_INDEX_', true);
include_once('../common.php');
include_once(G5_LIB_PATH.'/mailer.lib.php');
include_once(G5_CAPTCHA_PATH.'/captcha.lib.php');
$file = array();
for ($i=1; $i<=count($_FILES); $i++)
{
if ($_FILES["file".$i][name]) {
$file[]= attach_file($_FILES["file".$i][name], $_FILES["file".$i][tmp_name]);
}
}

$content=<<<HEREDOC
<table style="margin:auto; padding:0; width:70%; border:2px solid #2949af; font-size:15px; line-height:40px; font-family:'NANUMGOTHIC'; border-collapse:collapse;">
<tr style="border-bottom:1px solid #2949af;">
<td colspan="2" style="height:130px; text-align:center; border-bottom:1px solid #fff; background:url('../img/main_header_bg.jpg') #2949af repeat-x;"><img src="http://wbff.impmedia.kr/img/main_logo.png" alt="WBFF ASIA"></td>
</tr>
<tr style="border-bottom:1px solid #2949af;">
<td style="padding:0 30px; width:240px; height:40px; background:#fff; color:#2949af; border-bottom:1px solid #2949af; font-weight:600; ">한글이름</td><td style="padding:0 30px; height:30px; color:#000;">$k_nm</td>
</tr>
<tr style="border-bottom:1px solid #2949af;">
<td style="padding:0 30px; width:240px; height:40px; background:#fff; color:#2949af; border-bottom:1px solid #2949af; font-weight:600; ">First Name</td><td style="padding:0 30px; height:30px; color:#000;">$first_nm</td>
</tr>
<tr style="border-bottom:1px solid #2949af;">
<td style="padding:0 30px; width:240px; height:40px; background:#fff; color:#2949af; border-bottom:1px solid #2949af; font-weight:600; ">Last Name</td><td style="padding:0 30px; height:30px; color:#000;">$last_nm</td>
</tr>
<tr style="border-bottom:1px solid #2949af;">
<td style="padding:0 30px; width:240px; height:40px; background:#fff; color:#2949af; border-bottom:1px solid #2949af; font-weight:600; ">생년월일</td><td style="padding:0 30px; height:30px; color:#000;">$birth</td>
</tr>
<tr style="border-bottom:1px solid #2949af;">
<td style="padding:0 30px; width:240px; height:40px; background:#fff; color:#2949af; border-bottom:1px solid #2949af; font-weight:600; ">키(cm)</td><td style="padding:0 30px; height:30px; color:#000;">$height</td>
</tr>
<tr style="border-bottom:1px solid #2949af;">
<td style="padding:0 30px; width:240px; height:40px; background:#fff; color:#2949af; border-bottom:1px solid #2949af; font-weight:600; ">몸무게(kg)</td><td style="padding:0 30px; height:30px; color:#000;">$weight</td>
</tr>
<tr style="border-bottom:1px solid #2949af;">
<td style="padding:0 30px; width:240px; height:40px; background:#fff; color:#2949af; border-bottom:1px solid #2949af; font-weight:600; ">성별</td><td style="padding:0 30px; height:30px; color:#000;">$Gender</td>
</tr>
<tr style="border-bottom:1px solid #2949af;">
<td style="padding:0 30px; width:240px; height:40px; background:#fff; color:#2949af; border-bottom:1px solid #2949af; font-weight:600; ">우편번호</td><td style="padding:0 30px; height:30px; color:#000;">$zip_code</td>
</tr>
<tr style="border-bottom:1px solid #2949af;">
<td style="padding:0 30px; width:240px; height:40px; background:#fff; color:#2949af; border-bottom:1px solid #2949af; font-weight:600; ">주소</td><td style="padding:0 30px; height:30px; color:#000;">$Address1</td>
</tr>
<tr style="border-bottom:1px solid #2949af;">
<td style="padding:0 30px; width:240px; height:40px; background:#fff; color:#2949af; border-bottom:1px solid #2949af; font-weight:600; ">상세주소</td><td style="padding:0 30px; height:30px; color:#000;">$Address2</td>
</tr>
<tr style="border-bottom:1px solid #2949af;">
<td style="padding:0 30px; width:240px; height:40px; background:#fff; color:#2949af; border-bottom:1px solid #2949af; font-weight:600; ">휴대폰번호</td><td style="padding:0 30px; height:30px; color:#000;">$m_num</td>
</tr>
<tr style="border-bottom:1px solid #2949af;">
<td style="padding:0 30px; width:240px; height:40px; background:#fff; color:#2949af; border-bottom:1px solid #2949af; font-weight:600; ">이메일 주소</td><td style="padding:0 30px; height:30px; color:#000;">$e_addr</td>
</tr>
<tr style="border-bottom:1px solid #2949af;">
<td style="padding:0 30px; width:240px; height:40px; background:#fff; color:#2949af; border-bottom:1px solid #2949af; font-weight:600; ">1번째 참가 종목 ( 24만원 )</td><td style="padding:0 30px; height:30px; color:#000;">$first_select</td>
</tr>
<tr style="border-bottom:1px solid #2949af;">
<td style="padding:0 30px; width:240px; height:40px; background:#fff; color:#2949af; border-bottom:1px solid #2949af; font-weight:600; ">2번째 참가 종목 ( + 5만원 )</td><td style="padding:0 30px; height:30px; color:#000;">$second_select</td>
</tr>
<tr style="border-bottom:1px solid #2949af;">
<td style="padding:0 30px; width:240px; height:40px; background:#fff; color:#2949af; border-bottom:1px solid #2949af; font-weight:600; ">개인포스터제작 (+ ₩ 40,000)</td><td style="padding:0 30px; height:30px; color:#000;">$third_select</td>
</tr>
<tr style="border-bottom:1px solid #2949af;">
<td style="padding:0 30px; width:240px; height:40px; background:#fff; color:#2949af; border-bottom:1px solid #2949af; font-weight:600; ">개인포토그래퍼 촬영 (+ ₩ 90,000)</td><td style="padding:0 30px; height:30px; color:#000;">$fourth_select</td>
</tr>
<tr style="border-bottom:1px solid #2949af;">
<td style="padding:0 30px; width:240px; height:40px; background:#fff; color:#2949af; border-bottom:1px solid #2949af; font-weight:600; ">클래식 출전여부</td><td style="padding:0 30px; height:30px; color:#000;">$classic_select</td>
</tr>
<tr style="border-bottom:1px solid #2949af;">
<td style="padding:0 30px; width:240px; height:40px; background:#fff; color:#2949af; border-bottom:1px solid #2949af; font-weight:600; ">무대소개시 자기소개 문구</td><td style="padding:0 30px; height:30px; color:#000;">$ABOUT</td>
</tr>
<tr>
<td colspan="2" style="padding:0 30px; height:80px; color:#2949af; font-size:30px;">$final_amount</td>
</tr>
</table>
HEREDOC;

mailer($config['cf_admin_email_name'], $config['cf_admin_email'], $e_addr, '참가신청', $content,1,$file);



alert('참가신청 완료되었습니다.','/shop');
?>

답변 1개

채택된 답변
+20 포인트

이건 현제 사용하는 서버메일을 구글에서 걸러서 그렇습니다

구글 스팸에 대해 검색해보시거나 구글에 문의해서 안되게 한다거나 화이트도메인 등록한다거나  

아무튼 서버상의 문제는 아닙니다 

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

불량학생님 답변 감사합니다!! 참고해서 적용해보도록할게요 !! 정말 감사합니다ㅠㅠ

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인
🐛 버그신고