Enum CdoProtocolsAuthentication
Const cdoNTLM = 2
Member of CDO.CdoProtocolsAuthentication
Use the NTLM authentication mechanism
Const cdoBasic = 1
Member of CDO.CdoProtocolsAuthentication
Use the basic (clear text) authentication mechanism.
Const cdoAnonymous = 0
Member of CDO.CdoProtocolsAuthentication
Perform no authentication (anonymous)
---------------------------------------------
Set iCon = iMsg.Configuration
iCon.Fields(" http://schemas.microsoft.com/cdo/configuration/smtpauthenticate").Value = cdoAnonymous '設置smtp驗證方式為匿名
iCon.Fields.Update
Const cdoNTLM = 2
Member of CDO.CdoProtocolsAuthentication
Use the NTLM authentication mechanism
Const cdoBasic = 1
Member of CDO.CdoProtocolsAuthentication
Use the basic (clear text) authentication mechanism.
Const cdoAnonymous = 0
Member of CDO.CdoProtocolsAuthentication
Perform no authentication (anonymous)
---------------------------------------------
Set iCon = iMsg.Configuration
iCon.Fields(" http://schemas.microsoft.com/cdo/configuration/smtpauthenticate").Value = cdoAnonymous '設置smtp驗證方式為匿名
iCon.Fields.Update
博客介绍了CDO.CdoProtocolsAuthentication中的认证机制,包括使用NTLM认证机制的cdoNTLM、使用基本(明文)认证机制的cdoBasic,以及不进行认证(匿名)的cdoAnonymous,还给出了设置smtp验证方式为匿名的代码示例。
1820

被折叠的 条评论
为什么被折叠?



