views:

37

answers:

2

Hello!

Is it possible to send an e-mail with a <form> in it that the receiver can fill out and send? The form will obviously have an external absolute path to the processing file (action), e.g. http://mysite.com/processor.php.

Just Yes - No answers will not suffice.

By possible I mean will all e-mail clients like this and allow mails to pass through.

Thanks.

+2  A: 

You can't count on the client to display HTML/javascript/.. content. You could do it, if you also provide a link to a webpage with the same content for people whose client does not display the form.

Emile Vrijdags
Also, even when the client does support HTML, typically it is a restricted subset of HTML.
JulesLt
And I've never seen one that supported JS (except via security holes that were later patched)
David Dorward
I'm not talking about JS. That gets restricted by many e-mail clients.
Francisc
+2  A: 

Of course, it is possible, but you need to provide an alternative functionality unless you have full control on the software that will be used to process the e-mail (for instance, a custom web client that's part of a ticket system or a desktop client in an enterprise environment). There're many e-mail clients out there and not all of them implement form handling (and even those who do may not do it properly).

Tests with the clients I use:

  • Outlook Express: GET works, POST sends no data
  • Gmail: GET and POST work
Álvaro G. Vicario
Thank you, Alvaro.
Francisc