Search code examples
javascripthtmlformshtml-email

Form submit mailto


i have a little problem, i have developing html, css, javascript application for iphone and i have a form that submitting mails like:

<form action="mailto:some email" method="post" enctype="text/plain">
name:
phone:
email:
comments:
</form>

and when i click send, iphone email application opening with all the details, but all the details converting to gibberish (all the text is in hebrew). how can i manage the details remain in hebrew and not converting to gibberish in the iphone email app?


Solution

  • mailto: URIs in forms are too unreliable to use on the WWW. Use an HTTP URL instead and send the email from your server (this will require some form of server-side programming, but the specifics will depend on your choice of programming language).