cdo發送郵件時smtp驗證方式的設置(設置錯誤發送郵件時會報錯)

来源:互联网 发布:上海 青少年 编程 编辑:程序博客网 时间:2024/05/16 08:16
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
原创粉丝点击