[英]Mail an exchange server SMTP server response: 550-Verification failed
How do I send an email to my exchange server? 如何将电子邮件发送到交换服务器? When I set the php.ini file with send_from="x@domain.com" it says 550 verification failed.
当我使用send_from =“ x@domain.com”设置php.ini文件时,它说550验证失败。 How do I verify myself?
我如何验证自己?
I am using SMTP: mail.domain.com 我正在使用SMTP:mail.domain.com
Its probably a good idea to use a class like phpmailer http://sourceforge.net/projects/phpmailer/ to do this. 使用类似phpmailer http://sourceforge.net/projects/phpmailer/的类来执行此操作可能是一个好主意。
That way if you have multiple projects that need to send via a different account or different servers then you won't have any problems. 这样,如果您有多个项目需要通过不同的帐户或不同的服务器发送,则不会有任何问题。
The error you're getting is because your exchange server requires authentication and your script isn't using authentication or its using the wrong information. 您收到的错误是因为交换服务器需要身份验证,并且脚本未使用身份验证或其脚本使用了错误的信息。 I've never really relied on the built in php sendmail functions so I can't be 100% sure but I don't think it supports authentication.
我从来没有真正依赖过内置的php sendmail函数,所以我不能100%确定,但是我不认为它支持身份验证。 (I might be wrong on that point, but I still recommend a class that you can configure per script over a globally configured mail account)
(在这一点上我可能是错的,但是我仍然建议您可以通过全局配置的邮件帐户针对每个脚本配置的类)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.