CDO When sending mail, the SMTP authentication mode is set (the setting error will be reported when email)

xiaoxiao2021-03-06  52

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' Sets the SMTP authentication method for anonymity

icon.fields.Update

转载请注明原文地址:https://www.9cbs.com/read-83135.html

New Post(0)