E-Mail Addresses not created automatically using Sharepoint - Exchange 2007
Hello, I have Exchange 2007 on Windows server 2008 along with sharepoint 2007. I have written a code in sharepoint's new.aspx page, for creating new accounts (Users/Groups) in Exchange server), but E-Mail Addresses are not updated automatically when I creates account using my Code. However, when "Automatically update e-mail addresses" check is enabled (actually unchecked before checking) then accounts get assigned with the proper addresses and are also shown in the Address Book. This process needs to be done manually for each account created. Further, if I creates new account using Exchange Management Console, it works perfectly. Can anybody help me out of this, as it is getting tedious day-by-day. Regards, CJ
July 13th, 2010 2:33pm

Hi, if this flag "Automatically update e-mail addresses" is unchecked then email addresses wont be assigned automatically. You should make sure that this flag is set to true when you are creating users programmatically. Can u tell us how are u creating Exchange mailboxes from your code? Regards,Laeeq Qazi|Team Lead(Exchange + Sharepoint + BES + DynamicsCRM) www.HostingController.com
Free Windows Admin Tool Kit Click here and download it now
July 13th, 2010 2:46pm

On Tue, 13 Jul 2010 11:33:26 +0000, Charan Pathania wrote: > > >Hello, I have Exchange 2007 on Windows server 2008 along with sharepoint 2007. I have written a code in sharepoint's new.aspx page, for creating new accounts (Users/Groups) in Exchange server), but E-Mail Addresses are not updated automatically when I creates account using my Code. > >However, when "Automatically update e-mail addresses" check is enabled (actually unchecked before checking) then accounts get assigned with the proper addresses and are also shown in the Address Book. This process needs to be done manually for each account created. > >Further, if I creates new account using Exchange Management Console, it works perfectly. > >Can anybody help me out of this, as it is getting tedious day-by-day. Regards, CJ Your code is insufficient. There's no Recipient Update Service in Exchange 2007 (or later) to complete the processing of mailbox-enabling a user. That function has been moved to the managed code you should be using to accomplish the task. http://blogs.msdn.com/b/mstehle/archive/2007/01/25/outbox-introduction-to-exchange-powershell-automation-part-2.aspx --- Rich Matheisen MCSE+I, Exchange MVP --- Rich Matheisen MCSE+I, Exchange MVP
July 14th, 2010 3:26am

Hi All, I have resolved the problem. I was exceuting update global address command in code incorrectly... System.Management.Automation.Runspaces.Command myCommand = new System.Management.Automation.Runspaces.Command("Update-GlobalAddressList -identity Default Global Address List"); Which should be like this System.Management.Automation.Runspaces.Command myCommand = new System.Management.Automation.Runspaces.Command("Update-GlobalAddressList"); myCommand.Parameters.Add("identity", "Default Global Address List"); Thanks, CJ
Free Windows Admin Tool Kit Click here and download it now
July 14th, 2010 8:36am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics