This documentation is archived and is not being maintained.
Configuring the Message Object
EWS Managed API
Topic Last Modified: 2006-06-12
To configure a Message object
-
Create an instance of the Configuration Component Object Model (COM) class.
-
Populate the configuration settings in the IConfiguration.Fields collection.
-
Set the IMessage.Configuration property to the IConfiguration object reference on the Configuration object.
Visual Basic
' 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 Flds(cdoSendUsingMethod) = cdoSendUsingPort Flds(cdoSMTPServer) = "mail.example.com" ' ... other settings Flds.Update Dim iMsg As New CDO.Message Set iMsg.Configuration = iConf ' go on to use Message instance
Show: