Platform SDK: Exchange 2000 Server |
[This is preliminary documentation and subject to change.]
When sending or posting messages over the network, many SMTP and NNTP services require clients to authenticate themselves. To configure a messaging object for authentication, perform the following steps:
For the NTLM setting, the current process/thread security context is used to authenticate.
' Reference to Microsoft ActiveX Data Objects 2.5 Library ' Reference to Microsoft CDO for Exchange 2000 Server Library ' .. Dim iConf As New CDO.Configuration Dim Flds As ADODB.Fields Set Flds = iConf.Fields ' Set the configuration ' Use string constants provided in the type library ' for field names (they are long) Flds(cdoSendUsingMethod) = cdoSendUsingPort Flds(cdoSMTPServer) = "mail.microsoft.com" Flds(cdoSMTPServerPort) = 26 Flds(cdoSMTPConnectionTimeout) = 30 Flds(cdoSMTPAccountName) = "My Name" Flds(cdoSendUserReplyEmailAddress) = """User"" <user@microsoft.com>" Flds(cdoSendEmailAddress) = """User"" <user@microsoft.com>" Flds(cdoSMTPAuthenticate) = cdoBasic Flds(cdoSendUserName) = "name" Flds(cdoSendPassword) = "password" Flds.Update Dim iMsg As New CDO.Message Set iMsg.Configuration = iConf ' go on to use Message instance