简体   繁体   English

如何在联系表单上配置电子邮件?

[英]how do I configure email on a contact form?

How do I configure the email address for a contact form?如何配置联系表单的电子邮件地址? I am using a template and have noob level knowledge of HTML and CSS and not much else.我正在使用一个模板,并且对 HTML 和 CSS 有菜鸟级的知识,其他的不多。 I would like to trace where I put my email address so that I start receiving emails via the form.我想追踪我放置电子邮件地址的位置,以便我开始通过表单接收电子邮件。

The HTML for the contact is联系人的 HTML 是

                    <div class="tab-entry">

                        <div class="row tab-entry-intro">
                        <div class="col-twelve with-bottom-line">



                        </div>          
                    </div> <!-- /tab-content-intro -->

                    <div class="row form-wrap tab-entry-content">
                        <div class="col-twelve">

                            <!-- form -->
                            <form name="contactForm" id="contactForm" method="post" action="">
                                <fieldset>

                                  <div class="form-field">
                                           <input name="contactName" type="text" id="contactName" placeholder="Name" value="" minlength="2" required="">
                                  </div>
                                  <div class="form-field">
                                       <input name="contactEmail" type="email" id="contactEmail" placeholder="Email" value="" required="">
                                   </div>
                                  <div class="form-field">
                                           <input name="contactSubject" type="text" id="contactSubject" placeholder="Subject" value="">
                                   </div>                       
                                  <div class="form-field">
                                        <textarea name="contactMessage" id="contactMessage" placeholder="message" rows="10" cols="50" required=""></textarea>
                                   </div>                      
                                 <div class="form-field">
                                     <button class="submitForm button button-primary large">Submit</button>

                                     <div id="submit-loader">
                                        <div class="text-loader">Sending...</div>                             
                                          <div class="s-loader">
                                                    <div class="bounce1"></div>
                                                    <div class="bounce2"></div>
                                                    <div class="bounce3"></div>
                                                </div>
                                            </div><!-- submit-loader -->
                                  </div>

                                </fieldset>
                            </form> <!-- /form -->

                            <!-- contact-warning -->
                            <div id="message-warning">              
                            </div>            
                            <!-- contact-success -->
                            <div id="message-success">
                               <i class="fa fa-check"></i>Your message was sent, thank you!<br>
                            </div>

                         </div> <!-- /col-twelve -->                            
                    </div> <!-- /row contact-form -->

                    </div> <!-- /tab-entry -->                  

                </div> <!-- /tab-contact -->

Seding an email directly with javascript (as it´s your tag) is not possible, but you can open the user mail client:使用 javascript 直接发送电子邮件(因为它是您的标签)是不可能的,但您可以打开用户邮件客户端:

window.open('mailto:name@domain.com'); window.open('mailto:name@domain.com');

It´s possible to have a predetermined subject and body using these variables:使用这些变量可以有一个预定的主题和正文:

window.open('mailto:name@domain.com?subject=example_subject&body=example_body'); window.open('mailto:name@domain.com?subject=example_subject&body=example_body');

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM