Bhe*_*zie 28
查看formspree.
https://github.com/asm-products/formspree
对于行动,你只需:
<form action="http://formspree.io/you@email.com" method="post">
<input type="text" name="name">
<input type="email" name="_replyto">
<input type="submit" value="Send">
Run Code Online (Sandbox Code Playgroud)
在第一次发送后验证您的电子邮件后,将通过电子邮件向您发送表格内容.要记住的一件事是,这将采用输入名称.如果您不包含输入名称,则不会向您发送该表单字段.
没有完美的解决方案,因为它们仍然被编码为url变量.将enctype设置为明文使其更容易被接受.
<form action="mailto:email@example.com" enctype="text/plain">
<textarea></textarea>
</form>
Run Code Online (Sandbox Code Playgroud)