Found this at MSDN (Active Directory Services Interface in the Microsoft Exchange 5.5 Environment):
code:
Note that in VBScript, it is necessary to CStr() string values
to properly format the data for ADSI:
objNewDL.Put "cn", CStr(strDisplayName)
objNewDL.Put "uid", CStr(strAliasName)
objNewDL.Put "distinguishedName", CStr("cn=" + strAliasName +
",cn=Recipients,ou=" + strSite + ",o=" + strOrganization)
objNewDL.Put "mail", CStr(strSMTPAddr)
This code creates a multivalued property. In VBScript you have
to de-reference the array by using parentheses:
objNewDL.PutEx ADS_PROPERTY_UPDATE, "otherMailbox", (aOtherMailbox)
objNewDL.Put "Report-To-Originator", True
objNewDL.Put "Report-to-Owner", False
objNewDL.Put "Replication-Sensitivity", CInt(20)
objNewDL.Put "rfc822Mailbox", CStr(strSMTPAddr)
objNewDL.Put "textEncodedORaddress", CStr(strx400Addr)
objNewDL.SetInfo
Response.Write "DL Created Successfully!<BR><BR>"
I tried CStr'ing the E-Mail string before PuEx'ing it to no avail.
Can anyone figure out if the: quote:
it is necessary to CStr() string values to properly format the data for ADSI
and the:
quote:
In VBScript you have to de-reference the array by using parentheses
makes an issue in Kix?