Platform SDK: Exchange 2000 Server |
[This is preliminary documentation and subject to change.]
Language code and time zone information is stored in the Message object's associated Configuration object. These values are stored in the http://schemas.microsoft.com/cdo/configuration/languagecode and urn:schemas:calendar:timezoneid fields.
The language code is used when constructing the response text for reply and forwarded messages. The time zone identifier is used when converting date and time values to local times.
To configure the language code and time zone used for messaging, perform the following steps.
' 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 for Network Send Flds(cdoLanguageCode) = "en-us" Flds(cdoTimezoneId) = cdoMountain ' .. set additional fields Flds.Update Dim iMsg As New CDO.Message Set iMsg.Configuration = iConf
Both of these fields have default values that depend upon the current machine locale and system settings. In many cases, you will not need to set these values explicitly.