How to show current user inbound access in sharepoint 2007

I found this web part for Exchange 2003, but in 2007, even after logging in, the web part displays the 2007 login page owa (instead of the current incoming user).

How can I show the current Exchange 2007 mailbox in moss 2007? Any idea?

+1
source share
1 answer

The solution is to create a wrapper web part around the OWA web part out of the box and access your inbox using the currently registered user as the destination user.

Here is the code

PS (note that the web access address is set in the settings here!)

using System; using System.Configuration; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using Microsoft.SharePoint; using Microsoft.SharePoint.Portal.WebControls; namespace DCubed.SharePoint.WeParts { /// <summary> /// Wrapper around the My Inbox WebPart /// </summary> public class MyInboxEx : WebPart { /// <summary> /// Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering. /// </summary> protected override void CreateChildControls() { // Create the instance of My Inbox Web Part var inbox = new OWAInboxPart { MailboxName = SPContext.Current.Web.CurrentUser.Email, OWAServerAddressRoot = ConfigurationManager.AppSettings["MailServer"] }; Controls.Add(inbox); } } } 
0
source

All Articles