Skip to main content
Participant
February 14, 2019
Answered

Emailing form

  • February 14, 2019
  • 2 replies
  • 490 views

Whenever someone submits the form, it opens in a mail client. Is there anyway to do this automatically so that they don't have to send it themselves?

<div class="formcontent"><form action="mailto:enquiry@wigstonshoes.co.uk" method="post" enctype="text/plain" id="contactform" title="Contact Form">

      <h2>Contact Form</h2>

      <label>Name: </label><input name="name" type="text" required id="Name" form="contactform" placeholder="Please enter name here" tabindex="1" title="Name:" size="39" maxlength="25">

      <p>

      <label>Email: </label><input name="emailaddress" type="email" required id="emailaddress" form="contactform" placeholder="example@example.co.uk" tabindex="2" size="40" maxlength="50">

</p>

       <p>

      <label>Phone: </label><input name="phone" type="text" required id="phone" form="contactform" placeholder="e.g. 07809425885" tabindex="3" size="39" maxlength="11">

</p>

        <p>

<label>Query (please include as much information as possible): </label>

        <textarea name="query" cols="48" rows="5" maxlength="250" required id="query" form="contactform" placeholder="Please enter your query here" tabindex="4"></textarea>

        </p>

        <div class="g-recaptcha" data-sitekey="6LdPh5EUAAAAAPNDlamQ2XvWlZP9xv5EB7Kk3312"></div>

        <input name="submit" type="submit" id="submit" form="contactform" tabindex="5">

        <input name="reset" type="reset" id="reset" form="contactform" tabindex="6">

      

      </form></div>

This topic has been closed for replies.
Correct answer Nancy OShea

If your server supports PHP code, get PHP Mailer on GitHub

GitHub - PHPMailer/PHPMailer: The classic email sending library for PHP

2 replies

Nancy OShea
Community Expert
Nancy OSheaCommunity ExpertCorrect answer
Community Expert
February 14, 2019

If your server supports PHP code, get PHP Mailer on GitHub

GitHub - PHPMailer/PHPMailer: The classic email sending library for PHP

Nancy O'Shea— Product User & Community Expert
Jon Fritz
Community Expert
Community Expert
February 14, 2019

You have to stop using the mailto: email action (what you describe is how that action works) and instead, get a form to email script to connect to your page.

Your hosting company may have a free one you can use, but if they don't there are many options available depending on what technologies your server has installed.

A search for something like "php form to email script" will give you a lot of do it yourself options as well.