联系表格提供错误

时间:2017-07-20 20:25:38

标签: php html email

我的网站上有两个联系表格:www.davek.us,我无法让他们发送电子邮件。两者都弹出没有结果,并坚持“请等待”。任何帮助将不胜感激。

联系表格:

          <div id="myTabContent" class="tab-content flat-tab-content">
            <div class="tab-pane fade in active" id="tab0">
              <form action="sending_mail.php" method="post" id="contactForm" name="contactForm">
                <input type="hidden" name="subject" value="Message Contact Form">
                <div class="form-group">
                  <label>Your Name (*)</label>
                  <input type="text" class="form-control form-flat" name="fullname" required>
                </div>
                <div class="form-group">
                  <label>Email (*)</label>
                  <input type="email" class="form-control form-flat" name="email" required>
                </div>
                <div class="form-group">
                  <label>Phone (*)</label>
                  <input type="phone" class="form-control form-flat" name="phone" required>
                </div>
                <div class="form-group">
                  <label>Your Message (*)</label>
                  <textarea class="form-control form-flat" name="message" rows="8" required></textarea>
                </div>

                <div class="form-group">
                  <div id="captcha1"></div>
                </div>
                <div class="form-group ">
                  <button type="submit" class="btn btn-flat-solid primary-btn" >Send Message</button>
                </div>
                <div class="form-group">
                  <div class="preload-submit hidden"><hr/> <i class="fa fa-spinner fa-spin"></i> Please Wait ...</div>
                  <div class="message-submit error hidden"></div>
                </div>
              </form>
            </div>
            <div class="tab-pane fade" id="tab1">
              <form action="sending_mail.php" method="post" id="hireForm" name="hireForm">
                <input type="hidden" name="subject" value="Message Hire Form">
                <input type="hidden" name="file" id="file-att" value="">
                <div class="form-group">
                  <label>Your Name (*)</label>
                  <input type="text" class="form-control form-flat" name="fullname" required>
                </div>
                <div class="form-group">
                  <label>Email (*)</label>
                  <input type="email" class="form-control form-flat" name="email" required>
                </div>
                <div class="form-group">
                  <label>Phone (*)</label>
                  <input type="phone" class="form-control form-flat" name="phone" required>
                </div>
                <div class="form-group">
                  <label>Short Description About of Project (*)</label>
                  <textarea class="form-control form-flat" name="message" rows="8" required></textarea>
                </div>

                <div class="form-group">
                  <label>Attach Your Document <span class="display-block color-dark"></span></label>
                  <div class="clearfix">                        
                    <input type="button" id="upload-btn" class="btn btn-flat-solid btn-file btn-xs btn-default  clearfix" value="Choose file">
                    <div id="errormsg" class="clearfix error"></div>                  
                    <div id="pic-progress-wrap" class="progress-wrap"></div>    
                    <div id="picbox" class="attbox color-dark"></div>
                  </div>
                </div>
                <div class="form-group">
                  <div id="captcha2"></div>
                </div>

                <div class="form-group">
                  <button type="submit" class="btn btn-flat-solid primary-btn">Send Request</button>
                </div>

                <div class="form-group">
                  <div class="preload-submit hidden"><hr/> <i class="fa fa-spinner fa-spin"></i> Please Wait ...</div>
                  <div class="message-submit error hidden"></div>
                </div>
              </form>
            </div>
          </div><!--End Tabs-->

PHP sending_mail.php:https://pastebin.com/9nFbfszN

PHP错误:`

  

[20-Jul-2017 20:10:22 UTC] PHP警告:mail():在第60行的/home/davidkryszczak/public_html/php/sending_mail.php的additional_header中找到多个或格式错误的换行符   [20-Jul-2017 20:12:05 UTC] PHP警告:mail():在第60行/home/davidkryszczak/public_html/php/sending_mail.php的additional_header中找到多个或格式错误的换行符   `

0 个答案:

没有答案