Internet Explorer does not support mailto in form actions for HTML form emails
P粉458913655
P粉458913655 2023-10-26 19:06:49
0
1
773

Our client has a register.html page with a very simple form that allows the user to enter details to register to the client website.

The form operation is set to "mailto:clientsemail.client.com?subject=subject". The enctype of the page is set to text/plain, and the method is post.

What should happen is that the user email client opens a new email, sets the subject and posts the form textbox into the form body. The website visitor then simply sends an email.

I know it's not very elegant, but that's how they set it up.

Now this all works as expected and sends a rather clunky looking email to the correct address using the web visitor email client, but only in Firefox, Chrome and Opera. Safari crashes completely and Internet Explorer opens the email client and populates the address and subject fields, but the form input is not copied to the body.

Does anyone know why this is? This drives me crazy. Been looking at it all day and every article I find on the subject states that it is set up correctly and should work. There's no mention that it doesn't work in IE.

P粉458913655
P粉458913655

reply all(1)
P粉676588738

mailto: Form operations depend on your browser and native email client working well together. They do this so rarely that the mailto: form action doesn't work on the WWW.

Replace this with a server-side program that sends email.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template