define contact mailbox

J

JNTA

When I try:
1 Dim user As New
DirectoryEntry(LDAP://server.dom.com/cn=contactTest,ou=Mailing,dc=dom,dc=com,
"user", "pass", AuthenticationTypes.Secure)
2 Dim mbx As CDOEXM.IMailboxStore = user.NativeObject
3 mbx.CreateMailbox(LDAP://CN=contactTest,ou=Mailing,dc=doc,dc=com)
4 user.CommitChanges()

I receive "System.InvalidCastException: Specified cast is not valid." line
2.

why???

I would want define the email address for the contacts.

thanks
dJa
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top