Responsive mailformを使ってLPのお問い合わせフォームを自分がコーディングした
HTMLサイトに組み込んでいます。
しかし、テスト送信をした際に自動返信が入力したメアドに届きません。
ぐぐって調べていますが、なにせ情報が少なすぎるのでなかなか解決に辿りつかないです。
アドバイス頂ける方、よろしくお願い申し上げます。
HTML
1<form action="php/mailform.php" method="post" id="mail_form"> 2<div class="form-container"> 3 <div class="input-block"> 4 <label class="label" for="rendou">お名前<span class="required">必須</span><span class="gray-text-sp">例)東京 太郎</span></label><input type="text" id="name_1" name="name_1" value="" /><span class="gray-text">例)東京 太郎</span> 5 </div> 6 <div class="input-block"> 7 <label class="label" for="rendou">ふりがな<span class="required">必須</span><span class="gray-text-sp">例)とうきょう たろう</span></label><input type="text" id="read_1" name="read_1" value="" /> <span class="gray-text">例)とうきょう たろう</span> 8 </div> 9 <div class="input-block"> 10 <label class="label" for="rendou">年齢<span class="required">必須</span></label> 11 <select name="age"> 12 <option>指定なし</option> 13 <option value="under18">18歳未満</option> 14 <option value="18">18</option> 15 <option value="19">19</option> 16 <option value="20">20</option> 17 <option value="21">21</option> 18 <option value="22">22</option> 19 <option value="23">23</option> 20 <option value="24">24</option> 21 <option value="25">25</option> 22 <option value="26">26</option> 23 <option value="27">27</option> 24 <option value="28">28</option> 25 <option value="29">29</option> 26 <option value="30">30</option> 27 <option value="31">31</option> 28 <option value="32">32</option> 29 <option value="33">33</option> 30 <option value="34">34</option> 31 <option value="35">35</option> 32 <option value="36">36</option> 33 <option value="37">37</option> 34 <option value="38">38</option> 35 <option value="39">39</option> 36 <option value="40">40歳以上</option> 37 </select> 38 </div> 39 40 <div class="input-block"> 41 <label class="label">住所<span class="required">必須</span></label><input type="text" id="address" name="address" value="" /> 42 </div> 43 44 45 <div class="input-block"> 46 <label class="label" for="rendou">現在の状況<span class="required">必須</span></label> 47 <select name="age"> 48 <option>指定なし</option> 49 <option value="working">在職中</option> 50 <option value="left">離職中</option> 51 <option value="parttime">アルバイト</option> 52 </select> 53 </div> 54 55 <div class="input-block"> 56 <label class="label">メールアドレス<span class="required">必須</span><span class="gray-text-sp">例)mail@ドメイン名</span></label><input type="email" id="mail_address_confirm" name="mail_address_confirm" value="" /><span class="gray-text">例)mail@ドメイン名</span> 57 </div> 58 59 <div class="input-block"> 60 <label class="label">電話番号<span class="required">必須</span><span class="gray-text-sp">例)080-0000-0000</span></label><input type="tel" id="phone" name="phone" value="" /><span class="gray-text">例)080-0000-0000</span> 61 </div> 62 63 <div id="last-input-block" class="input-block"> 64 <label class="label">面談希望日<span class="required">必須</span></label> 65 <div class="date-wrap"> 66 <div class="date-block"> 67 <select id="date" name="month"> 68 <option value="month">1</option> 69 <option value="month">2</option> 70 <option value="month">3</option> 71 <option value="month">4</option> 72 <option value="month">5</option> 73 <option value="month">6</option> 74 <option value="month">7</option> 75 <option value="month">8</option> 76 <option value="month">9</option> 77 <option value="month">10</option> 78 <option value="month">11</option> 79 <option value="month">12</option> 80 </select> 81 <p class="date-month">月</p> 82 </div> 83 84 <div class="date-block"> 85 <select id="date" name="day"> 86 <option value="day">1</option> 87 <option value="day">2</option> 88 <option value="day">3</option> 89 <option value="day">4</option> 90 <option value="day">5</option> 91 <option value="day">6</option> 92 <option value="day">7</option> 93 <option value="day">8</option> 94 <option value="day">9</option> 95 <option value="day">10</option> 96 <option value="day">11</option> 97 <option value="day">12</option> 98 <option value="day">13</option> 99 <option value="day">14</option> 100 <option value="day">15</option> 101 <option value="day">16</option> 102 <option value="day">17</option> 103 <option value="day">18</option> 104 <option value="day">19</option> 105 <option value="day">20</option> 106 <option value="day">21</option> 107 <option value="day">22</option> 108 <option value="day">23</option> 109 <option value="day">24</option> 110 <option value="day">25</option> 111 <option value="day">26</option> 112 <option value="day">27</option> 113 <option value="day">28</option> 114 <option value="day">29</option> 115 <option value="day">30</option> 116 <option value="day">31</option> 117 </select> 118 <p class="date-day">日</p> 119 </div> 120</div> 121</div> 122 123 124<div class="privacy-policy"> 125<p><input type="checkbox" name="accept">当サイトの<a href="https://ycm.co.jp/privacy/" target="_blank" rel="noopener noreferrer">「プライバシーポリシー」</a>に同意します。</p> 126</div> 127<p id="form_submit"><input type="button" id="form_submit_button" value="無料相談する!" /></p> 128</div><!--form-container--> 129</form>
mailform.php↓
php
1<?php 2 3/*-------------------------------------------------------------------------- 4 5 Script Name : Responsive Mailform 6 Author : FIRSTSTEP - Motohiro Tani 7 Author URL : https://www.1-firststep.com 8 Create Date : 2014/03/25 9 Version : 7.2.1 10 Last Update : 2019/10/03 11 12--------------------------------------------------------------------------*/ 13 14if ( file_exists( dirname( __FILE__ ) .'/../addon/token/session.php' ) ) { 15 include( dirname( __FILE__ ) .'/../addon/token/session.php' ); 16} 17error_reporting( E_ALL ); 18 19mb_language( 'ja' ); 20mb_internal_encoding( 'UTF-8' ); 21date_default_timezone_set( 'Asia/Tokyo' ); 22 23require_once( dirname( __FILE__ ) .'/class.mailform.php' ); 24$responsive_mailform = new Mailform(); 25 26if ( file_exists( dirname( __FILE__ ) .'/../addon/confirm/confirm.php' ) ) { 27 include( dirname( __FILE__ ) .'/../addon/confirm/confirm.php' ); 28} 29 30$responsive_mailform->javascript_action_check(); 31$responsive_mailform->referer_check(); 32 33if ( file_exists( dirname( __FILE__ ) .'/../addon/token/token.php' ) ) { 34 include( dirname( __FILE__ ) .'/../addon/token/token.php' ); 35} 36 37$responsive_mailform->post_check( 'default' ); 38 39if ( file_exists( dirname( __FILE__ ) .'/../addon/block/block.php' ) ) { 40 include( dirname( __FILE__ ) .'/../addon/block/block.php' ); 41} 42 43$responsive_mailform->mail_set( 'send' ); 44$responsive_mailform->mail_set( 'thanks' ); 45 46if ( file_exists( dirname( __FILE__ ) .'/../addon/csv-record/include/csv.php' ) ) { 47 include( dirname( __FILE__ ) .'/../addon/csv-record/include/csv.php' ); 48} 49 50$responsive_mailform->mail_send(); 51$responsive_mailform->mail_result(); 52?>
回答1件
あなたの回答
tips
プレビュー