ASP Predefined Constants
Constants for use with CDONTS and CDOSYS
The CDO (Collaboration Data Objects) predefined constants are simply a list of constants arranged into a single file that can be included into your existing project. Alternatively you could just hard code the value from below into your code or function.
CODE:
Get this Code: Click to download the ASP file.
Do not copy and paste the displayed code. The display function adds line breaks and numbers, so what you see is definitely not you would get. The continuation marker " _ " is used to indicate the break.
01: '------------------------------------------ ' 02: ' Microsoft CDO for NTS 1.2 Library ' 03: ' Constants for VBScript ' 04: '----------------------------------------- 05: '---- CdoAttachmentTypes Values ---- 06: Const CdoFileData = 1 07: Const CdoEmbeddedMessage = 4 08: '---- CdoBodyFormats Values ---- 09: Const CdoBodyFormatHTML = 0 10: Const CdoBodyFormatText = 1 11: '---- CdoEncodingMethod Values ---- 12: Const CdoEncodingUUencode = 0 13: Const CdoEncodingBase64 = 1 14: '---- CdoFolderTypes Values ---- 15: Const CdoDefaultFolderInbox = 1 16: Const CdoDefaultFolderOutbox = 2 17: '---- CdoImportance Values ---- 18: Const CdoLow = 0 19: Const CdoNormal = 1 20: Const CdoHigh = 2 21: '---- CdoMailFormats Values ---- 22: Const CdoMailFormatMime = 0 23: Const CdoMailFormatText = 1 24: '---- CdoMessageFormats Values ---- 25: Const CdoMime = 0 26: Const CdoText = 1 27: '---- CdoObjectClass Values ---- 28: Const CdoSession = 0 29: Const CdoMessages = 16 30: Const CdoRecipients = 17 31: Const CdoAttachments = 18 32: Const CdoFolder = 2 33: Const CdoClassTotal = 29 34: Const CdoMsg = 3 35: Const CdoRecipient = 4 36: Const CdoAttachment = 5 37: Const CdoAddressEntry = 8 38: '---- CdoRecipientTypes Values ---- 39: Const CdoTo = 1 40: Const CdoCc = 2 41: Const CdoBcc = 3 42: '---- CdoSendUsing Values ----- 43: const cdoSendUsingPickup = 1 44: const cdoSendUsingPort = 2 45: '---- CdoProtocolsAuthentication Values ----- 46: const cdoAnonymous = 0 47: const cdoBasic = 1 48: const cdoNTLM = 2 49: '---- CdoTimeZoneId Values ----- 50: const cdoUTC = 0 51: const cdoGMT = 1 52: const cdoLisbon = 2 53: const cdoParis = 3 54: const cdoBerlin = 4 55: const cdoEasternEurope = 5 56: const cdoPrague = 6 57: const cdoAthens = 7 58: const cdoBrasilia = 8 59: const cdoAtlanticCanada = 9 60: const cdoEastern = 10 61: const cdoCentral = 11 62: const cdoMountain = 12 63: const cdoPacific = 13 64: const cdoAlaska = 14 65: const cdoHawaii = 15 66: const cdoMidwayIsland = 16 67: const cdoWellington = 17 68: const cdoBrisbane = 18 69: const cdoAdelaide = 19 70: const cdoTokyo = 20 71: const cdoHongKong = 21 72: const cdoBangkok = 22 73: const cdoBombay = 23 74: const cdoAbuDhabi = 24 75: const cdoTehran = 25 76: const cdoBaghdad = 26 77: const cdoIsrael = 27 78: const cdoNewfoundland = 28 79: const cdoAzores = 29 80: const cdoMidAtlantic = 30 81: const cdoMonrovia = 31 82: const cdoBuenosAires = 32 83: const cdoCaracas = 33 84: const cdoIndiana = 34 85: const cdoBogota = 35 86: const cdoSaskatchewan = 36 87: const cdoMexicoCity = 37 88: const cdoArizona = 38 89: const cdoEniwetok = 39 90: const cdoFiji = 40 91: const cdoMagadan = 41 92: const cdoHobart = 42 93: const cdoGuam = 43 94: const cdoDarwin = 44 95: const cdoBeijing = 45 96: const cdoAlmaty = 46 97: const cdoIslamabad = 47 98: const cdoKabul = 48 99: const cdoCairo = 49 100: const cdoHarare = 50 101: const cdoMoscow = 51 102: const cdoInvalidTimZone = 52

