Showing Exchange inbox in MOSS 2007 - **DON'T ask for the Code**, it is in a message in the thread ! (ElinK - Posted on 11 April 2008 14:04:57)
Hello,
I would like to be able to show the user's personal exchange inbox within MOSS 2007. When the user opens the sharepoint page I would like their inbox to be displayed, without them having to enter their details into the web part.
Thanks in advance.
- Edited byMike Walsh MVPMVP, ModeratorSaturday, August 09, 2008 9:42 AMToo many people asking for code by e-mail when it is already in the thread,
All Replies
- try using "My Inbox" web part but you have to configure it for the first time.
Thanks for the reply, however this is not viable as each user will have to configure the web part for their own exchange inbox. I would like the web part to bring up the users inbox automatically when the page is open without the need for each user to enter their email details?
You should let the users use the default behavior on their MySite, it supports this behavior.
- I was just wondering, did you ever figure out a way to do this?
I've found that for Exchange 2007 Web Access the logged on user's inbox is displayed in the My Inbox webpart without configuring the Mailox property of the webpart. For customers using the previous version I created a small custom webpart that reads the username of the logged in user and builds the correct address to the user's inbox view.
- Any chance of us getting a hold of that web part? I'd be interested in talking to you about it. We're looking to roll out this feature to people, but the fact that this field doesn't populate itself poses a real problem for us!
Have a look at this Blog.
http://mindsharpblogs.com/Todd/archive/2006/08/17/1250.aspxThis uses Java Script in a CEWP and will display their inbox etc.
Note: It requires Outlook on their machine configured to receive exchange.May not be exactly what you need, but well worth keeping in mind.
Oh and a slight enhancement to the above: http://mindsharpblogs.com/todd/archive/2006/08/20/1257.aspxThe webpart retrieves the username of the logged on user and uses that as the mailbox name for the standard Inbox webpart. You can use my webpart if you can use it, no problem, just let me know your email address and I will mail it to you.
Regards
ElinK
Hi Elink,
Your web part sounds like just what we are after, we are using exchange 2003 with MOSS 2007, will your web part work with this set up?
Thanks.
Yes, MOSS 2007 and Exchange 2003 is the setup it is created for.
Regards,
ElinK
- Hi ElinK,
Am equally working on setting up a portal which i want a user to be able to view their outlook. Could please let me also have hands on to that web part, am sure it would really help.
Many thanks,
Sims No problem, just post your email address and I will mail it to you.
Regards
ElinK
- hi ElinK,
you can send it to simusokwechristopher@yahoo.co.uk
thanks
sims Hi,
I am interesed in that web part as well, (jbirru@epartnersolutions.com). we are looking for a web part the displays the users inbox based on the logged on user to MOSS. we are publishing this MOSS site- it does not have the My Site - through ISA 2007. Exchange is version 2007 and SharePoint is 2007 as well.
Thanks
- Hi Mike80 and simusokwe
The webpart sent. Good luck!
Regards
ElinK
- Unmarked As Answer byMike Walsh MVPMVP, ModeratorFriday, July 25, 2008 2:53 PM
Hi
Since you have Exchange 2007 I think you can use the webpart "My Inbox" for this. You can add this webpart to any page, not only My Site and if you leave the mailbox property empty it will open the inbox for the current user.
Regards,
ElinK
Hi ElinK,
I have received the web part thanks, i will have a go at this tomorrow at work and let you know how i get on.
Thanks again.
Just integrated your web part and it works perfectly! Thanks again for your help ElinK, you have saved me a lot of time and trouble
. Do you know of a way to get the users exchange calendar to show in a similar way?
Thanks.
I'm glad it worked.
I haven't created a similar webpart for the calendar, but I'm sure you could do it in the same way. You would need a Sharepoint developer to build a webpart. Since there has been some interest for this solution I will place my code here as an example:
Code Snippetusing System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Microsoft.SharePoint.WebPartPages;
using Microsoft.SharePoint.Portal.WebControls;namespace <CompanyName>.Webparts
{
public class EnabledInbox : System.Web.UI.WebControls.WebParts.WebPart
{
private string _errorMsg = "";
private string _owaServerAddressRoot = "";[WebBrowsable(true), SPWebCategoryName("OWA Settings"), Personalizable(PersonalizationScope.Shared), WebDisplayName("OWAServerAddressRoot"), WebDescription("Full address to Outlook Web Access application")]
public string OWAServerAddressRoot
{
get { return _owaServerAddressRoot; }
set { _owaServerAddressRoot = value; }
}public EnabledInbox()
{
this.ExportMode = WebPartExportMode.All;
}private bool VerifyInput()
{
if (_owaServerAddressRoot.Length == 0)
{
_errorMsg = "You should provide the address to the Outlook Web Access application in the webpart's properties.";
return false;
}
return true;
}protected override void CreateChildControls()
{
try
{
if (VerifyInput())
{
OWAInboxPart inbox = new OWAInboxPart();
inbox.OWAServerAddressRoot = _owaServerAddressRoot;
string userName = Page.Request.ServerVariables["LOGON_USER"];
string mailboxName = userName;
int pos = userName.IndexOf("\\");
if (pos > -1)
{
mailboxName = userName.Substring(pos + 1);
}
inbox.MailboxName = mailboxName;
Controls.Add(inbox);
}}
catch (Exception ex)
{
_errorMsg += ex.ToString();
}
}protected override void Render(HtmlTextWriter writer)
{
RenderChildren(writer);
if (_errorMsg.Length > 0) writer.Write(_errorMsg);
}
}
}We've got the web part working so it auto-populates the email address -- this is great, thanks!
So...Firefox...we have a lot of Firefox users. It uses that screwy non-premium OWA template. I'm guessing there's no way around that. Right? One of our developers here built the custom web part for My Inbox so the name auto-populates, and he also added "New Message" and "Full Screen" links at the bottom of it since MS doesn't include that as part of the "My Inbox" web part. Unfortunately, now when Firefox users logon, they have two "New Message" buttons because the 'generic' OWA template actually displays the "New" button that you'd see if you were to logon to OWA outside of Sharepoint.
I wish Microsoft would realize that whether they like it or not, not everyone is going to use their browser, and it just makes things harder for the people who administer their products!!!!!
Hi Elink,
We have a requirement on similar lines where we have to show Exchange 2003 Inbox on MOSS. Can you share the code with me.
My email is is saumya2002@gmail.com
Appreciate your help!
Thanks
Saumya
Hi Elink,
I am sure yo have probably been pestered about this web part for a while but I am attempting to develop it my self with not the best of luck. Would it be possible for you to please be able to send me the webpart which takes the logged user mailbox and server(mindi_gill@hotmail.com).
Thankyou in advance for any assistance.
Kind Regards
Mindi-G
- Can you please mail it to: skulia[@]n1.is (minus the [ ]). I have been looking for a simular script for days now
We have sort of same situation. Kindly send a copy of the webpart to this address wajahat_1@hotmail.comIn the OWA web part, put in the name of your exchange server and then in the mailbox name put in a '?' mark. (without the quotes. This should bring up the current users mailbox.
Hi Sharepoint Cowboy,
When using the ? mark as the user name it brings up the full outlook web access view instead of just the inbox. Could you use the ? to just show the inbox or calendar? Showing just the current users calendar would be very useful.
Thanks.
Nothing that I have found as of yet.
- Hi,
I need this web part, can you please send it to anji505@hotmail.com.
Thanks,
Anji. - I'd like to take a look at it too please. ejaya2@live.com Thanks.
HI Elink,
Please send it to jt_immanuel@yahoo.com. Moreover please let me know if any configurations are to be made.
Thanks in Advance
Immanuel
Hi,
I am interesed in that web part as well,(please send it to immanuel.anand@wipro.com). we are looking for a web part the displays the users inbox based on the logged on user to MOSS. we are publishing this MOSS site- it does not have the My Site. Exchange is version 2007 and SharePoint is 2007 as well.
Thanks
Immanuel Anand
Hi
The webpart is only intended for Sharepoint Server 2007 showing inbox from Exchange 2003. If you have Exchange 2007 you can use the default MyInbox webpart. Just leave mailbox name blank in the properties.
Regards
ElinK
Hi,
Sorry for miss spelling 2003 as 2007...Here i have Exchange 2003 and sharepint 2007.please send the webpart to immanuel.anand@wipro.com. please let me know if any configurations are to be made.
Thanks
Immanuel
Elink
this sounds perfect, could i be the 17th person to request and receive this webpart my address is daniel.cozens@ecgd.gsi.gov.uk
DanHi,
I have a requirement to show login users inbox, calendar and tasks on same page, so taking this code developed seperate webparts for all three.
Now a strange behaviour is that they work ok when deployed alone. When add all three together only the last webpart, which is set up last, shows.
e.g if we setup inbox first, then calendar and tasks finally. Only tasks are shown. Is there a some thing shared there which got over written at some point.
I think I'm the 20th person... I'd like to take a look at the webpart too.... jparker@icminc.com.
Thanks!
Hi Elink
Please send me also this webpart , i am looking in candle lights for this
Please help
Thanks
- Could you please send a copy to jomaras@gmail.com
Thank you very much - The approach mentioned in this thread has some limitations. I have blogged about it here:
http://blogs.msdn.com/mahuja/archive/2008/07/01/showing-exchange-inbox-in-moss-2007.aspx
The best bet would be to upgrade to Exchange 2007.
--
Madhur Hi,
Even I want to configure Moss 2007 in such a way that When the user opens the sharepoint page I would like their inbox to be displayed, without them having to enter their details into the web part.
If any body has this webpart which will read the credentials of logged in user & bring up the respective mail box on home page please send it to me.
Hi Elink,
Could you please send it to abbelard@gmail.com
Many thanks.
Hi Elink,
I have also been looking out for something of this sort.
Could you please send it to joshi@ggktech.comThanks in advance
- Hi ElinK,
Can you also send the webpart to: jeroenvan_ree@hotmail.com??
Thank you verry much!!
Jeroen - Hi Elink
Can you please send me that webpart to my mail id .
I m also using Web Access 2003 with MOSS 2007.
My Mail id vishal.chauhan@kpitcummins.com
Thanks
Vishal Chauhan - Hi Elink,
I need your web part to explore the inbox of the user who logged on to MOSS.
My email id is : saravanan@alnadeem.com
I am using Exchange Server 2003 and MOSS 2007
Thanks- Edited bydevisaran Thursday, July 31, 2008 6:11 AMchange in quote
- Hi, can you send the webpart to me? I have to make that all users to can see their mail, calendar or contacts without entering their credentials, thank you and good days...
mail: suayip_son83@hotmail.com - Hi,
Could any one send that inbox webpart to sanjay.kurra@gmail.com
I need to do tat in my project.
Couid any one help me out. - Hi Elink,
Your solution sounds great to me.
I am also in need of this webpart.
Could you please send this webpart to me also?
reachkochumon@hotmail.com
Thanks in advance.
Mathew
Mathew - hai there..can send to me the web part through my email?
my e-mail-->lurahaf_suxcka@yahoo.com
thanks in advance..
Hi ElinK,
Could you please send me the webpart to my email id safeern@yahoo.com
Thanks in advance.
SAF
- I am interesed in that web part as well, please send to this id kathiravan_kamatchi@mindtree.com
- Hi Elink & all,
I used the sample code in http://blogs.msdn.com/mahuja/archive/2008/07/01/showing-exchange-inbox-in-moss-2007.aspx. When I open a page, which contains this webpart, it popup a dialog to require username/password for Exchange. My Exchange 2003 and MOSS 2007 use same Active Directory, but installed in different servers.
How can I open mail box of login user automatically without re-enter username/password?
Thanks,
Tkien.
- Hey Elink,
Would it be possible to geta copy as well?
chris@seertech.co.uk - Hello ElinK,
I tried using your code but i face some issues with getting the OWA address right. i guess that is not letting me get the webpart work! what shld i change here to get it to work? the address that i typed in takes me to the login page!
Thanks,
Tony.
- Please could you send me to. contactemos@gmail.com. Thanks
- Hi I was wondering if that webpart is still available. I currently teach at a school and this webpart would be very helpful. My email address is kyle_b_2004@hotmail.com. If anybody else who has already received the webpart could send I would be most appreciative.
Thanks - am facing the same problem, and i need a web part to access the exchane server mail box with out asking for user name and password again.. so if you can send it to me please.
regards
radwan - i just forgot to give you my email :p
my email is roy.dev@hotmail.com - Hi Elink,
if still possible i would also like to have the webpart.
My Email is wigle.carsten@herrenknecht.de
Thanks a lot in advance! - Hello ElinK,
Would you please send your web part to me as well? Please send to jie_heng[at]hotmail[dot]com.
Thanks! - Hello ElinK,
Would you please send your web part to me?
nschoenf[at]freenet[dot]de
Thanks! - Hello ElinK,
Would you please send your web part to me as well? Please send to mostafamonier@msn.com
Thanks!
Sys Admin - Hello Elink,
If you'd be so kind, I hope you don't mind me asking for that webpart as well.
I've looked for a solution everywhere.
Thank you so very much in advance and Happy New Year!
manny.rustia@ocfl.net - Hello again, I just realized that Elink has mentioned that he has placed the code on this thread.
Unfortunately I'm not sure what to do it with it since I am just learning my way and hoped for a copy of his webpart and not some code I do not know where to place.
It would sncerely appreciate it SO much if anyone would be so kind to help.
Thanks in advance! - Please send me the webpart my mail id is roopaksr@gmail.com
Thanks in advance. - Can I get that webpart?
jasalandra@aol.com
Thanks - Will all of you read the Title of the post and stop asking for it to be sent you by e-mail.
The code is in the thread.
WSS FAQ sites: WSS 2.0: http://wssv2faq.mindsharp.com WSS 3.0 and MOSS 2007: http://wssv3faq.mindsharp.com
Total list of WSS 3.0 and MOSS 2007 Books (including foreign language titles) http://wssv3faq.mindsharp.com/Lists/v3%20WSS%20FAQ/V%20Books.aspx- Proposed As Answer byglieu Tuesday, May 26, 2009 7:01 PM
- Can you send me your custom webpart? It sounds like a solution for the problem that I am faced with as well. Thanks in advance. (jtemple@sd69.bc.ca)

