Change CakeEmail SMTP authentication type

 ̄綄美尐妖づ 提交于 2019-12-25 16:49:36

问题


How do you change the authentication type that CakeEmail uses when using Smtp transport?

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?


回答1:


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.

So you'll probably have to create a custom/extended SMTP transport.

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.



来源:https://stackoverflow.com/questions/23939427/change-cakeemail-smtp-authentication-type

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!