Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 PHPMailer 开发电子邮件功能,SMTP 和 PHPMailer。在我的办公室里,我们有不同的服务器。在这里,它工作正常。但是,当我试图从办公室外发送邮件时,它不起作用。我正在使用 SMTP Auth False。我只提供主机名和端口号。
为什么它不起作用?
如果您没有针对 SMTP 服务器进行身份验证,可能是因为您的 SMTP 仅适用于您的本地办公网络。
出于安全原因,您的 SMTP 服务器可能正在请求身份验证或只是不响应本地网络之外的连接。
您需要询问办公室的 IT 人员,以便他们为您提供一些 SMTP 凭据以在办公室外使用。