Exchange Contact Type is wrong (EX)

  • Thread starter Thread starter crazyone
  • Start date Start date
C

crazyone

I have made a complete script used to transfer businesses, departments
and contacts from a private contact database into an exchange 2003
server. I'm using ADSI and everything work fine except for the email
type and the email itself.

When i look at my global access list from Outlook 2003 i get an adresse
like this :

- /o=NT5/ou=748134867651354876415/cn=5289756465746516554466 (Fictive
numbers)

And i can also note that the Type of email address is EX.

Looking in several places i found that my emails are saved correctly
when i look at my options, the only thing not working is the email type
that shows EX, it should instead display SMTP i.m.o....

I've been looking for the correct property to set from ADSI, for the
last week on google and groups and forums, to fix this issue ASAP but
could not find anything.

Can anyone help me out.
 
That sounds perfectly normal. If you create contacts in the GAL with ADSI, they should have Exchange EX addresses, used internally, as well as SMTP addresses. Version of Outlook before Outlook 2007 always display the EX address in the Address Book dialog. The SMTP address is visible on the address details dialog.
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
If i try to send to a local address from my outlook by simply double
clicking the contact in my GAL this is the message i get (Translation
follows to the best of my abilities) :

"Impossible de remettre le message car le système de messagerie du
destinataire est inconnu ou non valide. Vérifiez l'adresse du
destinataire et réessayez d'envoyer le message, ou contactez
l'administrateur système pour qu'il vérifie la connectivité vers le
système de messagerie du destinataire."

"Impossible to deliver message because the destination messaging system
is unknown or invalid. Verify the address and try to send again or
contact the system administrator so he can verify the connectivity with
the destination messaging system."

I checked a bit more the output of my script and i can see in the ADS
that my contacts do have an E-Mail. But when i look in outlook after
adding the contact as à "TO: ", the email is not present in the Email
addresses tab. Here is a part of my script, maybe the attributes are
wrong or i am missing one that is necessary :


'Other naming info
If firstname <> "" Then OriginalObject.Put "givenName", firstname
If lastname <> "" Then OriginalObject.Put "sn", lastname
If initials <> "" Then OriginalObject.Put "initials", initials

If jobtitle <> "" Then OriginalObject.Put "title", jobtitle
If client <> "" Then OriginalObject.Put "physicalDeliveryOfficeName",
client
If client <> "" Then OriginalObject.Put "company", client
If dept <> "" Then OriginalObject.Put "department", dept

If address <> "" Then OriginalObject.Put "streetAddress", address
If city <> "" Then OriginalObject.Put "l", city
If region <> "" Then OriginalObject.Put "st", region
If postalcode <> "" Then OriginalObject.Put "postalCode", postalcode
If country <> "" Then OriginalObject.Put "c", country

'Construct the telephone
If telephone <> "" And telephoneext <> "" Then
OriginalObject.Put "telephoneNumber", telephone & " Ext. " &
telephoneext
Elseif telephone <> "" Then
OriginalObject.Put "telephoneNumber", telephone
End If

'Continue the contact information
If fax <> "" Then OriginalObject.Put "facsimileTelephoneNumber", fax
If cellular <> "" Then OriginalObject.Put "mobile", cellular
If pager <> "" Then OriginalObject.Put "pager", pager
If email <> "" Then OriginalObject.Put "mail", email
'If email <> "" Then OriginalObject.Put "proxyAddresses", "smtp:" &
email
If website <> "" Then OriginalObject.Put "wWWHomePage", website

'Used to categorize the contacts in an ADS query
OriginalObject.Put "extensionAttribute1", 1

'Set the info into the object
OriginalObject.SetInfo
 
Probably better to post your script in microsoft.public.exchange.development or an AD group, since they're the ones who are the ADSI experts.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers


If i try to send to a local address from my outlook by simply double
clicking the contact in my GAL this is the message i get (Translation
follows to the best of my abilities) :

"Impossible de remettre le message car le système de messagerie du
destinataire est inconnu ou non valide. Vérifiez l'adresse du
destinataire et réessayez d'envoyer le message, ou contactez
l'administrateur système pour qu'il vérifie la connectivité vers le
système de messagerie du destinataire."

"Impossible to deliver message because the destination messaging system
is unknown or invalid. Verify the address and try to send again or
contact the system administrator so he can verify the connectivity with
the destination messaging system."

I checked a bit more the output of my script and i can see in the ADS
that my contacts do have an E-Mail. But when i look in outlook after
adding the contact as à "TO: ", the email is not present in the Email
addresses tab. Here is a part of my script, maybe the attributes are
wrong or i am missing one that is necessary :


'Other naming info
If firstname <> "" Then OriginalObject.Put "givenName", firstname
If lastname <> "" Then OriginalObject.Put "sn", lastname
If initials <> "" Then OriginalObject.Put "initials", initials

If jobtitle <> "" Then OriginalObject.Put "title", jobtitle
If client <> "" Then OriginalObject.Put "physicalDeliveryOfficeName",
client
If client <> "" Then OriginalObject.Put "company", client
If dept <> "" Then OriginalObject.Put "department", dept

If address <> "" Then OriginalObject.Put "streetAddress", address
If city <> "" Then OriginalObject.Put "l", city
If region <> "" Then OriginalObject.Put "st", region
If postalcode <> "" Then OriginalObject.Put "postalCode", postalcode
If country <> "" Then OriginalObject.Put "c", country

'Construct the telephone
If telephone <> "" And telephoneext <> "" Then
OriginalObject.Put "telephoneNumber", telephone & " Ext. " &
telephoneext
Elseif telephone <> "" Then
OriginalObject.Put "telephoneNumber", telephone
End If

'Continue the contact information
If fax <> "" Then OriginalObject.Put "facsimileTelephoneNumber", fax
If cellular <> "" Then OriginalObject.Put "mobile", cellular
If pager <> "" Then OriginalObject.Put "pager", pager
If email <> "" Then OriginalObject.Put "mail", email
'If email <> "" Then OriginalObject.Put "proxyAddresses", "smtp:" &
email
If website <> "" Then OriginalObject.Put "wWWHomePage", website

'Used to categorize the contacts in an ADS query
OriginalObject.Put "extensionAttribute1", 1

'Set the info into the object
OriginalObject.SetInfo
 
Note:

The proxyAdresses are commented out because they seemed to cause a
problem in mailbox delivery over the weekend. We aren't sure about this
yet though...
 

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

Back
Top