没有PHP从html表单发送电子邮件

max*_*hud 20 html php forms email

是否有一项服务允许您从一个html页面发布一个表单(我的php邮件暂时不工作,我需要一个快速的解决方案),它会自动发送一个指定内容的电子邮件到指定的地址?

它来自的地址微不足道.

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)

在第一次发送后验证您的电子邮件后,将通过电子邮件向您发送表格内容.要记住的一件事是,这将采用输入名称.如果您不包含输入名称,则不会向您发送该表单字段.

  • 是的,formspree真的很好。还要检查www.enformed.io效果很好。 (2认同)

twi*_*kes 8

没有完美的解决方案,因为它们仍然被编码为url变量.将enctype设置为明文使其更容易被接受.

<form action="mailto:email@example.com" enctype="text/plain">
<textarea></textarea>
</form>
Run Code Online (Sandbox Code Playgroud)