• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Emailing form

New Here ,
Feb 14, 2019 Feb 14, 2019

Copy link to clipboard

Copied

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>

Views

351

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Feb 14, 2019 Feb 14, 2019

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

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

Votes

Translate

Translate
Community Expert ,
Feb 14, 2019 Feb 14, 2019

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 14, 2019 Feb 14, 2019

Copy link to clipboard

Copied

LATEST

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 & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines