Having trouble getting the mailto: to work in IE8 (works fine in chrome)
<form action="mailto:admin@example.com&subject=testEmail" enctype="text/plain" method="post">
<table>
<tr>
<td><img id="content" alt="" height="238" src="images/notion_form_content.png" width="540" /></td>
<td>
<input class="editor-input" name="License" type="text" value="TeamPulse License"/><br/>
<input class="editor-input" name="Name" type="text" value="Name" /><br/>
<input class="editor-input" name="Email" type="text" value="Email" /><br/>
<input class="editor-input" name="Company" type="text" value="Company"/><br/>
<input class="button" type="submit" val开发者_运维问答ue=""/>
</td>
</tr>
</table>
</form >
method="post" creates the body with the input names, so the body looks like this
License=MyLicense
Name=Joe Email=email@email.com Company=ACMEThis works great in Chrome, but no in IE8 - (Outlook or email client does not launch)
If I do method="get", the email client is launched in IE8 (and chrome) but the body is empty
Your action is wrong. Use a ?
to start the mailto params, not a &
. So replace it with this:
mailto:admin@example.com?subject=testEmail
Switch the & to a ?
mailto:admin@example.co?subject=testEmail&body=This is the body text
The & means you are adding extra arguments
精彩评论