HTML 电子邮件联系表格的完整要求
我看过的所有地方,从 youtube、到 w3schools、再到 php 手册(仅举几例),都没有提供有关从简单的联系表单成功发送安全电子邮件的要求的深入细节...
构建除了表单和客户端/服务器验证之外,我到底需要知道什么才能使用 php mail() 函数通过电子邮件安全地发送结果?(因为 Perl 工作的任务并不繁重)根据 PHP 手册更好)。
什么是 SMTP?,什么是身份验证,在什么情况下需要它?,什么是标头?,什么是 x-mailer?,我到底如何将它们一起实现,以及我错过了什么?
Everywhere I've looked, from youtube, to w3schools, to the php manual (just to mention a few), none of them provided in-depth details about the requirements of successfully sending a secure email from a simple contact form...
Construction of the form and client/server validation aside, what exactly do I need to know to securely send the results via email using the php mail() function? (since it's not a heavy task for which Perl works better according to the PHP manual).
What is SMTP?, what is authentication and in what case do I need it?, what are headers?, what is x-mailer?, how exactly do I implement it all together, and what have I missed?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不存在安全电子邮件这样的东西。它通常以纯文本形式在互联网上传播。
除非您在发送之前进行加密,并且客户端有可以解密的东西,否则您无能为力。
这通常是通过将消息存储在可通过 HTTPS 访问的服务器上,然后通过电子邮件向该人员发送指向该消息的链接来处理的。然后,他们登录并查看消息。
There is no such thing as secure e-mail. It generally floats across the internet in plain text.
Unless you are encrypting before sending, and the client has something to decrypt it with on their end, there is nothing you can do.
This is usually handled by storing the message on a server accessible via HTTPS, and e-mailing the person a link to it. Then, they login and view the message.
老实说,您最好选择发送交易消息的电子邮件服务提供商。他们将为您提供与 PHP 文件一起使用的库,您不必担心电子邮件的所有要求,只需通过他们的系统拍摄即可。
许多较大的帐户都有免费帐户,因此除非您每天发送超过 30-50 封电子邮件,否则它们应该很适合您。
以下是较大的列表:
查看所有这些内容并找出最适合您的。祝你好运!
(全面披露:我是 PostageApp 的产品经理。)
In all honesty, you might be better off going with an email service provider that sends out transactional messages. They will have libraries for you to use with your PHP files and you won't have to worry about all of the requirements for emails, just shoot them through their systems.
Many of the larger ones have free accounts, so unless you are sending more than 30-50 emails a day, they should work well for you.
Here are the list of the bigger ones:
Take a look at all of these and figure out what works best for you. Best of luck!
(Full Disclosure: I am the Product Manager of PostageApp.)