Email addresses from Active Directory

I need to email notification of an event to the users who created an order. I have the user id stored on the order and I’m using the SMTP ocx to by pass outlook. That is straight forward. I was going to store the email address against the user setup table but I was wondering if it is possible to somehow get the email address from within Navision via Active Directory. I should add we are using 370A with SQL and have windows authentication setup.

hi we can get it, like this , you can write a WMI Script to access Active Directory , get the E mail detail from there , store it in a test file. now you can execute that WMI Script from navision by using Shell function. Script will executed , it will write values in text file, open that text file in navision, read those values…and you have done!!!