define contact mailbox
Exchange Server Forum Index Exchange Server
Discussion forums for Microsoft Exchange Server users.
Microsoft Outlook
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web ExchangeServerHelp.com
define contact mailbox

 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development
Author Message
JNTA
Guest





Posted: Thu Nov 10, 2005 5:58 pm    Post subject: define contact mailbox Reply with 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

Back to top
Joe Richards [MVP]
Guest





Posted: Fri Nov 11, 2005 1:58 am    Post subject: Re: define contact mailbox Reply with quote

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 Reply with quote

[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





Posted: Sat Nov 12, 2005 1:57 am    Post subject: Re: define contact mailbox Reply with quote

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/e2k3/e2k3/_cdo_imailrecipient_mailenable.asp?frame=true


--
Joe Richards Microsoft MVP Windows Server Directory Services
www.joeware.net


JNTA wrote:
Quote:
[cut]
You can't create a mailbox for a contact. You want to use the mailenable
method instead.

Exact. What?

Back to top
 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server Dedicated Servers
New Topics Powered by phpBB