0

for some reason my mail to function does not seem to work in android devices.... i'm really confused what to do as it seems to be working fine on windows devices

<article class="contact_form"> 
   <h2><i>Reach Me</i></h2>
    <table class="contact-table">
<form action="mailto:sanwal.sahil@yahoo.com" method="post" enctype="multipart/form-data" name="EmailTestForm">


<tr>
    <td><label for="name">Name:</label></td>
    <td>
    <input type="text" id="name" name="visitor" />
    <br>
    <br>
    </td>
</tr>       
  <tr>
     <td colspan="2">
         <button type="submit" colspan="1" class="form-submit">SUBMIT</button>
      </td>
  </tr> 



    </form>
     </table>  
</article>
  • Possible duplicate of [HTML web form mailto not working issue](http://stackoverflow.com/questions/21474533/html-web-form-mailto-not-working-issue) – ceejayoz Aug 28 '16 at 12:42

1 Answers1

2

mailto:, in general, has very unreliable support as a form action. This is likely just one more example of that. You should avoid it entirely in favour of using an HTTPS (or even HTTP) URL with a server side form handler.


Additionally, your form is invalid in a way that will break it in a number of browsers. Write valid HTML.

Community
  • 1
  • 1
Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335