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. 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
<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:
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');
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.