Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Opening HTML form email attachment in iOS 5

I have received an email on my iPhone (with iOS 5.0.1) with an HTML attachment. The HTML attachment contains a form to fill out and submit. The problem is that submitting the form does not work. I click the Submit button and nothing happens.


Is the problem that the Quick Look viewer is simply a passive viewer that does not do forms? I'd like to be able to open the attachment in Safari instead, but that does not appear to be an option. If a tap and hold the attachment, the only options I get are Quick Look and Dropbox.


Thanks!

iPhone 4, iOS 5.0.1

Posted on Jan 24, 2012 8:58 AM

Reply
2 replies

Jan 24, 2012 12:05 PM in response to dave.i

I bit more info. Clicking the Submit button on the form will open Safari after all. It was not working for me because it turned out that the URL pointed to by the form was not working. Now that the form is working, the submit appears to work.


Except that the submit really doesn't work. Instead of doing a POST to the target URL, with the accompanying form parameters, it appears to be requesting a GET of the target URL with no form parameters. In other words, it is treating the Submit button more like it is an HTML link.

May 16, 2013 5:08 PM in response to dave.i

In iOS 6 (tests below are at time of this post using iOS v6.1.3) it seems forms do not work under any circumstance.


No form submission is happening with HTML email attachments in Mail under these scenarios:

  1. <form action="https://..." method="get">, <input type="submit" name="sub" value="send it">, small payload less than 1k
  2. <form action="https://..." method="post">, <input type="submit" name="sub" value="send it">, small payload less than 1k
  3. <form action="https://..." method="get">, <input type="image" name="sub" value="send it">, small payload less than 1k
  4. <form action="https://..." method="post">, <input type="image" src="..." name="sub" value="send it">, small payload less than 1k


Also, Data URIs don't work in HTML Mail attachments. Tested:

  1. <img src="data:image/png;base64,...">
  2. <input type="image" src="data:image/png;base64,...">
  3. <object data="data:image/png;base64,...">


But remote images do work:

  1. <img src="https://...">
  2. <input type="image" src="https://...">

    Notice how datauri doesn't work, but this does?!

  3. <object data="https://...">


Apple PLEASE implement a "Open In Safari" as an option in "Quick Look".User uploaded file

Opening HTML form email attachment in iOS 5

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.