Php 使用Google库进行电子邮件身份验证

Php 使用Google库进行电子邮件身份验证,php,email,smtp,smtp-auth,Php,Email,Smtp,Smtp Auth,我正在使用以下google php库对电子邮件地址进行身份验证。以下是链接: 图书馆: 示例文件: 此代码在本地服务器上运行正常,但在客户端服务器上未进行验证。在我的客户机服务器上,出现以下错误: 550-Please turn on SMTP Authentication in your mail client, or login to the 550-IMAP/POP3 server before sending your message. ns500.mycyberhosting.c

我正在使用以下google php库对电子邮件地址进行身份验证。以下是链接:

图书馆:

示例文件:

此代码在本地服务器上运行正常,但在客户端服务器上未进行验证。在我的客户机服务器上,出现以下错误:

550-Please turn on SMTP Authentication in your mail client, or login to the
550-IMAP/POP3 server before sending your message.  ns500.mycyberhosting.com
550-(bebazar.be) [149.5.18.169]:53930 is not permitted to relay through this
550 server without authentication.
如果这是SMTP身份验证的问题,请让我知道如何在客户端服务器上启用SMTP身份验证


提前感谢

我认为使用php集成SMTP电子邮件是更好的选择,您可以使用您的电子邮件设置,甚至使用GMail向您的客户发送电子邮件,并且易于配置,而无需知道您的域或服务器配置。在PHPmaile中,您可以为经过身份验证的邮件授予true身份验证,并且可以通过启用调试模式调试电子邮件的每个状态