Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it impractical to put an HTML form into an email? [closed]

I've had several clients ask this, and I've never been able to get or give a satisfactory answer. Can you (practically) put a working form into an HTML email?

My understanding is that you can, but that there's no guarantee of email clients properly handling it, so that method would only be practical with individual recipients that you'd had a chance to test with, rather than with huge mailing lists of people using diverse email clients. But my understanding comes from a lot of developer friends shrugging at the question and no authority that I've found giving a clear answer either way.

What does Stack Overflow think? What's the best answer when you're asked to do this by a client who, for instance, wants a few hundred people to fill out a survey?

(Don't bother just answering "provide a link to a form on a website". That's the obvious answer. I want to know specifically if there's a consensus about forms in email.)

like image 610
Phantom Watson Avatar asked Jan 09 '09 15:01

Phantom Watson


People also ask

Can you put an HTML form in an email?

Yes, you can embed HTML content into an email if it supports HTML elements, but online forms are not exclusively HTML built. Even though you succeed in embedding your online form into an email, chances are the end-user will not be able to submit it at all.

Can you include a form in an email?

One method to include a form in an email is embedding it straight into email content. According to a study by GetFeedback, embedded feedback emails increases user engagement by up to 210% in comparison to the traditional feedback email.


2 Answers

1. HTML in email is perceived by some to be a blight

It just hardly ever works, and when it does work, it doesn't work properly.

I recently experienced a case where a rather lengthy html email, although well composed and worked rather well, was cut in half and prematurely trimmed by GMail ( due to length ) which mangled the design a bit.

I've also had cases where the HTML was so malformed the email turned up in my inbox as if it were really a blank email.

2. I don't trust forms in my email

For security reasons mostly, some clients may intercept the form action, and the post action won't go anywhere ( Especially in cases where they have a physical email client, Open Web browser and posting data via it, thats rather complicated ).

You are simply better off having a form on a website that you can control, and people don't have any nasty surpises about ( Especially if you need javascript to execute the form, many email clients won't put up with that )

Maybe, you can put a form in, but for the sake of sanity, be as backwards compatible as possible, so that somebody with a text based browser like Pine or Mutt can still read it, and be given a link to a working form that doens't require client magic.

like image 83
Kent Fredric Avatar answered Sep 23 '22 11:09

Kent Fredric


Simple answer is no, you can't. Try telling your client something like this:

Hardly any email clients will allow HTML forms in email, and some spam systems specifically block and delete emails that contain forms. This is due to security. There's a good chance that not even a fifth of the emails that are send with forms in them will even reach the recipients in-box.

like image 39
Ty. Avatar answered Sep 21 '22 11:09

Ty.