Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Html form in email

Tags:

html

email

I have created an html form with text boxes and radio buttons ect. I can email the form to an email address.

now the problem, when i fill in the form and click reply, i only get my blank html form back no values were left inside the textbox's.

Please help

like image 815
Pomster Avatar asked Nov 30 '22 14:11

Pomster


2 Answers

We did some fairly extensive research about HTML forms in emails for a client of ours. The bottom line is that it barely works, so it’s best to link to a form in a browser.

like image 114
Jay Rieckmann Avatar answered Dec 05 '22 01:12

Jay Rieckmann


What Quentin said holds water, many email clients (cough, outlook) are very specific in regards to their support for HTML emails. In fact most don't even support div's or embedded <style> blocks. Let alone an HTML form.

Your best bet is to use a URL that they click on, which in-turn opens up a form for them to fill out. If you need to capture some of their information automatically (such as email). you can generate query strings and in your mailer have it add the information in dynamicallly..

i.e; <a href="http://awesomeform.com/form.php?email=$client_email">

In email it would look like: http://awesomeform.com/[email protected]

Either way

If you are insistent on attempting this, use the email boilerplate to get you started. It has a ton of "best practices" and tips/tricks built right into it.

http://htmlemailboilerplate.com/

like image 26
NDBoost Avatar answered Dec 05 '22 00:12

NDBoost