formmail select 선택 발송

매출이 오르면 내리는 수수료! 지금 수수료센터에서 전자결제(PG)수수료 비교견적 신청해 보세요!
formmail select 선택 발송

QA

formmail select 선택 발송

본문

다른 폼메일 적용시에는 다음메일로는 수신이 안되더군요..

 

http://g5shop.returnway.com/formmail/formmail.php

 

트리플님께서 공유해 주신 폼메일 스킨 사용중입니다.

담당자별 이메일 전송을 하기위해  도움 요청 드립니다.

 

 

이 질문에 댓글 쓰기 :

답변 3

smtp를 바꿔서 적용해 보시는것도 있지만 다른 부분은 화이트 도메인을 등록해서 처리해 주셔야 하는 부분도 있습니다.

플라이님 답변 감사하드립니다.  화이트 도메인도 생각 해 보았지만,
현재 스킨으로 다음메일로 정상 확인 후에  담당자별로 보내려고 합니다.

// $dept = $_POST['subject'];
17
// if($dept == '담당자') {
18
// $config['send_to'] = '******<a href="//sir.kr/main/member/?mb_id=bajie123" class="mention_user_info" target="_blank"></a>.com';
19
// } else if($dept == '담당자1') {
20
// $config['send_to'] = '*********<a href="//sir.kr/main/member/?mb_id=bajie123" class="mention_user_info" target="_blank"></a>.com';
21
// } else if($dept == '담당자2') {
22
// $config['send_to'] = '*****@nate.com';
23
// }
24
//  select  //


    <div id="contactForm_form"  class="form_01">
        <div class="tbl_frm01 tbl_wrap">
            <ul>
                <li>
                    <label for="contact_name" class="sound_only">이름 *</label>
                    <input type="text" class="frm_input email full_input required" id="contact_name" name="contact_name" title="Name" placeholder="Name">
                </li>
                
                               <select name="subject" class="form-control" style="border: 1px solid #ddd;border-radius: 3px; padding: 5px 60px 5px 10px;">
                          <option value="담당자">담당자</option>
                          <option value="담당자1">담당자1</option>
                          <option value="담당자2">담당자2</option>
                          </select>
            
                <li>
                    <label for="contact_email" class="sound_only">이메일 *</label>
                    <input type="email" class="frm_input email full_input required" id="contact_email" name="contact_email" title="Email" placeholder="Email">
                </li>
                <li>
                    <label for="contact_phone" class="sound_only">연락처</label>
                    <input type="email" class="frm_input email full_input required" id="contact_phone" name="contact_phone" title="Phone" placeholder="Phone">
                </li>
                <li>
                    <label for="contact_subject" class="sound_only">제목 *</label>
                    <input type="email" class="frm_input email full_input required" id="contact_subject" name="contact_subject" title="Subject" placeholder="Subject">
                </li>
                <li>
                    <label for="contact_message" class="sound_only">내용 *</label>
                    <textarea id="contact_message" name="contact_message" rows="10" title="Message" placeholder="Message"></textarea>
                </li>
            </ul>
            <fieldset class="contactForm_agree2">
                <label for="agree">개인정보처리방침안내의 내용에 동의합니다.</label>
                <input type="checkbox" name="agree" value="1" id="agree">
            </fieldset>
        </div>
    </div>

 


<?php
// USE SMTP OR mail()
// SMTP is recommended, mail() is disabled on most shared hosting servers.
// IF false : SMTP host/port/user/pass/ssl not used, leave empty or as it is!
$config['use_smtp']                = true;                        // true|false
// SMTP Server Settings
$config['smtp_host']             = 'smtp.daum.net';   // eg.: smtp.mandrillapp.com
$config['smtp_port']             = 465;                        // eg.: 587
$config['smtp_user']             = '****.net';             // *** 개인정보보호를 위한 이메일주소 노출방지 ***
$config['smtp_pass']             = '*****';                // password
$config['smtp_ssl']                = true;                        // true for google (port 465), false for others
// Who receive all emails?
$config['send_to']                = '*******@nate.com';            // destination of all emails sent throught contact form  
 
 //  select //
// $dept = $_POST['subject'];
// if($dept == '담당자') {
// $config['send_to'] = '******.com';
// } else if($dept == '담당자1') {
// $config['send_to'] = '*********.com';
// } else if($dept == '담당자2') {
// $config['send_to'] = '*****@nate.com';
// }
//   select  //

// Email Subject
$config['subject']                = 'Company Contact Form';    // subject of emails you receive
?>
답변을 작성하시기 전에 로그인 해주세요.
전체 0
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT