| Author |
Message |
JNTA
Guest
|
Posted:
Thu Nov 10, 2005 5:58 pm Post subject:
define contact mailbox |
|
|
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
|
|
| Back to top |
|
 |
Joe Richards [MVP]
Guest
|
Posted:
Fri Nov 11, 2005 1:58 am Post subject:
Re: define contact mailbox |
|
|
You can't create a mailbox for a contact. You want to use the mailenable method
instead.
JNTA wrote:
| Quote: | 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
|
--
--
Joe Richards Microsoft MVP Windows Server Directory Services
www.joeware.net |
|
| Back to top |
|
 |
JNTA
Guest
|
Posted:
Fri Nov 11, 2005 4:15 pm Post subject:
Re: define contact mailbox |
|
|
[cut]
| Quote: | You can't create a mailbox for a contact. You want to use the mailenable
method instead.
|
Exact. What? |
|
| Back to top |
|
 |
Joe Richards [MVP]
Guest
|
|
| Back to top |
|
 |
|
|
|
|