更改CakeEmail SMTP身份验证类型 [英] Change CakeEmail SMTP authentication type
问题描述
在使用Smtp传输时,如何更改CakeEmail使用的身份验证类型?
How do you change the authentication type that CakeEmail uses when using Smtp transport?
当尝试发送到不支持密码验证的系统时,出现此错误:SMTP Error: 504 5.7.4 Unrecognized authentication type
.它仅支持NTLM.在CakePHP 2.5.1的食谱或API中,我还没有看到有关设置身份验证类型的任何信息.有什么办法可以手动更改它?
I get this error: SMTP Error: 504 5.7.4 Unrecognized authentication type
when trying to send to a system that doesn't support Password authentication. It only supports NTLM. I haven't seen anything about setting the authentication type in the cookbook or API for CakePHP 2.5.1. Is there any way to manually change it?
推荐答案
CakePHPs SMTP传输 仅支持基本的用户名/密码
CakePHPs SMTP transport only supports basic username/password authentication, there are no other authentication types implemented, and there's also no specialized mechanism for plugging in authentication adapters or the like.
因此,您可能必须创建一个自定义/扩展的SMTP传输.
So you'll probably have to create a custom/extended SMTP transport.
我对NTLM不熟悉,但是从 RFC 判断strong> ,应该可以实现 的实现SmtpTransport::_auth()
方法中的NTLM身份验证流程 .
I'm not familiar with NTLM, but judging from the RFC it should be possible to plug-in an implementation of the NTLM authentication flow in an overridden SmtpTransport::_auth()
method.
这篇关于更改CakeEmail SMTP身份验证类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!