0

Is there something we're missing to get the following code working in E-Mail clients / Web Mail:

<form action="mailto:a@b.com">
<input type="hidden" name="Subject" value="Email subject">
<textarea style="resize:none;" rows="5" cols="22" value="Body" name="Body">Default text area</textarea><br />
<input type="submit" name="Ask Question" >
</form>

The idea is that the recipient can ask a question of our team by typing their question into a text area ('Body') and clicking the button will open their default mail client/web mail with the message nicely composed for them to review and click send.

Clearly any kind of PHP or scripting is off limits as this strictly to be used in an e-mail newsletter template.

4

1 回答 1

1

尝试使用这个

<a href="mailto:someone@example.com?subject=MySubject&body=Mymessage"> Send mail </a>

您需要从表单中获取消息和主题值并将其添加到链接中。也尝试与您的表格一起使用

<form action="mailto:myforms@mydomain.com" enctype="text/plain" >

你也可以试试这个

<form action= "mailto:myforms@mydomain.com?subject=myform_submission" enctype="text/plain" onsubmit="location.href='thanks.html';" >
于 2013-03-20T10:05:32.097 回答