通过电子邮件发送大型加密电子邮件到 Outlook 客户端
这是一个有点复杂的问题。我一直在尝试实现一个系统,用户在表单上填写他们的帐户信息,然后通过电子邮件将此信息发送给客户。我有我的 php 脚本,它生成整个电子邮件;但是,当我使用 openssl_public_encrypt 这样的函数时,它会失败。我意识到这个函数有长度限制?
我想我的问题是:“如何在 php 中加密一封大电子邮件,然后将该文件发送给使用 Outlook 客户端的某人?”
有人有关于这个主题的任何好的信息吗?非常感谢。
This is somewhat of a complex question. I've been trying to implement a system where a user fills out their account information on a form and then it emails this information to a client. I have my php script which generates the email as a whole; however, when I use a function like openssl_public_encrypt, it fails. I've realized there is a length limit on this function?
I suppose my question is: "How do I encrypted a large email in php and then send that file to someone using an outlook client?"
Does anyone have any good information on this subject? It's greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
PHP 文档。查看评论,尤其是 Thomas Horsten 的评论。
我的建议是使用类似于这个问题中的解决方案 - 使用 Mcrypt 加密/解密文件,将其存储在服务器上,并将链接发送到电子邮件中的用户。如有必要,需要用户名和密码才能下载文件。
Lots of information about the limits of
openssl_public_encrypt()
in the PHP documentation. Check the comments, especially the one by Thomas Horsten.My suggestion would be to use something like the solution in this question - Encrypting / Decrypting file with Mcrypt, store it on a server, and send a link to the user in email. If necessary, require a username and password to download the file.