PHP-使用 SMTP 身份验证发送邮件,无需 mail()
我正在开发一个网站,该网站托管在服务器上,出于安全原因,该服务器禁用了“mail()”功能。
我想知道是否有其他方法可以绕过此问题并使用 SMTP 身份验证发送电子邮件?
我不拥有该服务器,也无法安装任何附加组件或插件。该服务器上没有 PEAR、Swift 或 PHPMailer。
我该怎么办? 感谢您的帮助。
I am working on a website which is hosted on a server that has the function "mail()" disabled for security reasons.
I would like to know if there is another way around to bypass this and send an email with SMTP authentication ?
I don't own the server and I can't install any add-ons or plugins. There isn't PEAR nor Swift nor PHPMailer on that server.
How should I do?
Thank you for your help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您不需要
“安装”
PHPMailer。只需将脚本上传到您的服务器并将其包含在您的脚本中即可。我相信如果您可以使用
mail()
函数,您可以将文件上传到服务器。如果你做不到,那么你什么也做不了。
You don't need to
"install"
PHPMailer. Just upload the script in your server and include it in your script.I believe if you could use
mail()
function you can upload files to the server.If you cannot, then you can't do nothing.