使用第三方 smtp
我运行一个网站,允许用户使用他们的 SMTP(而不是主机的 SMTP)发送电子邮件新闻通讯。在这种情况下,用户可以直接与 his/smtp 连接来发送电子邮件。我知道一些托管公司不允许这样做。有谁知道解决这个问题的方法吗?我需要将我的网站从当前主机上移走。
I run a website that allows users to send email newsletters using their SMTP, not the host's SMTP. In that case the user can connect directly with his/smtp to send email. I am aware that some hosting companies do not allow this. Does anyone know the way around this? I need to move my website from the present host.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 SwiftMailer (http://swiftmailer.org/)。用户需要向您提供登录信息,但您可以登录他们的电子邮件帐户并从他们的帐户发送电子邮件。这将一直有效,因为主机无法判断它是否是尝试发送电子邮件的标准邮件客户端。您甚至可以通过 Gmail 帐户发送。
如果这不是您想要的,那么您可能指的是中继,您可以放弃它。十多年来,开放中继一直是邮件服务器上最大的安全漏洞之一。没有人应该再有这个问题了。
You can use SwiftMailer (http://swiftmailer.org/). The user would need to give you there login information, but then you can login to their email account and send the emails from their account. This will work all the time since the host can't tell if it's a standard mail client trying to send email. You can even send through a gmail account.
If that's not what you want, then you are probably referring to relaying, which you can just give up on. Open relay has been one of the biggest security holes on mail servers for over a decade. Nobody should have that issue anymore.