I,Terms
OWA:Microsoft Outlook Web Access
Ad:Active Directory
Ou:AdOrganization Unit in
II,Background
1. Use of an Office Automation System OWA as a mail system
2,The user finds it inconvenient to select the recipient when creating a new email, and the query function is not used to it. The user needs to replace the address book.
III,Implementation
1. an office The background user management system of the automation system is supported by the unified organizational structure management system. The organizational structure in this system is the same as the actual administrative structure, user Logon Name and related information and ad synchronization , AD ou
2, OWA Called when you click the "recipient", "cc", and so on.CodeIs C: \ Program Files \ exchsrvr \ exchweb \ 6.5.6944.0 [ Version Number ] \ Controls \ util_owa.js In Opengal To replace the address book, you only need to replace it in this method. Window Of URL You can.
3. Create A . NET Web application Program . The main function is to display the address book content (Implementation omitted)
4. var vretval = Window. showmodelessdialog (g_sbase + "? Cmd = dialog & template = dlg_gal & Ver = 6.5.6944.0 "+" & theme = "+ g_thid, rgparams," dialogheight: "+ nheight +" PX; dialogwidth: "+ nwidth +" PX; Status: No; resizable: Yes; help: No; "); replace it with the following statement
Window. open ("/myemailbook", "wmyemailbook", "scrollbars = Yes, resizable = Yes, Top =" + (screen. availheight-410)/2 + ", Left =" + (screen. availwidth-650)/2 + ", width = 650, Height = 410 ");
5,OWAThe previous code is to return the selection result through the object. After the replacement, the selected mail is implemented by directly assigning values to the objects in the parent window. Add the following code on the send button of our own address book:
When using parent.opener.doc ument. All. msgto. value = strto; when using parent.opener.doc ument. All. msgcc. value = strcc; when using parent.opener.doc ument. All. msgbcc. value = strbcc;
You canEmailThe address is added to the recipients (CC and BCC) of the sent email.