6

I am working on something like this sync e-mail outlook2010 and sharepoint2010 I am looking for a way to log in outlook web parts in sharepoint 2010 automatically using logged in sharepoint user is it possible in C#.. i want to get away from kerberos authentication and configuring exchange server I've tried this one Get Current User Inbox and other similar ones but it didn't work. any suggestions?

Community
  • 1
  • 1
Mohamed Rozza
  • 567
  • 8
  • 12
  • 1
    Can you be more specific about what in the previous solution didn't work? – Ray May 09 '13 at 20:27
  • Have you read http://office.microsoft.com/en-gb/sharepoint-foundation-help/working-with-outlook-web-access-web-parts-HA101810215.aspx ? – Paul Zahra May 10 '13 at 07:39
  • @Ray signing in to outlook by setting mailboxname property MailboxName = SPContext.Current.Web.CurrentUser.Email Not working with exchange 2010 – Mohamed Rozza May 10 '13 at 17:14
  • 1
    @PaulZahra yes paul it's explaining how to add outlook webparts..but nothing about auto sign on – Mohamed Rozza May 10 '13 at 17:16

1 Answers1

1

Are the login credentials the same as for windows? If so, have you configured the browser correctly? See browser setup for auto login

To login try the following, inherit from OWAInboxPart and in OnInit create the mailbox name using the current user, for some a simple question mark seems to work:

public class MyInbox : Microsoft.SharePoint.Portal.WebControls.OWAInboxPart
{
    protected override void OnInit(object sender, EventArgs e)
    {
        this.MailboxName = ?;
        base.OnInit (sender, e);
    }
}

Look at this discussion of how to get the mailbox for the current user.

Paul Zahra
  • 9,522
  • 8
  • 54
  • 76
  • Yea Paul I've done that but it's not working..I tried it even in sharepoint outlook webpart and it didn't work there either..I am using sharepoint 2010 and OWA 2010..i think these settings would work with OWA 2007 – Mohamed Rozza May 14 '13 at 09:04
  • Hmm... in the discussion thread i posted did you try the suggestion of Jack-Gao's? (three posts from the bottom) – Paul Zahra May 14 '13 at 09:24
  • yes Paul i did..it was one of the first solutions I've tried..these solutions might have worked with owa and sharepoint 2007..but not 2010 – Mohamed Rozza May 18 '13 at 13:39