How can I embed Outlook Web App on my website?

I want to deploy Outlook Web App to my site. Show calendars, mail, people screens directly on the pages of my site. I tried to do this via iFrame, but it is forbidden. Is it possible at all?

+6
source share
2 answers

Contrary to popular belief, this is achievable.

There is more detailed information in my blogpost ( http://blog.degree.no/2013/06/owa-in-iframe-yes-its-possible/ ), but code is needed here. If you run it in “light mode” (flag = 1), there will be less problems and it will work with a cross domain, but if you run it in the same domain (for example, a website running on your domain and your the exchange server works by mail. yourdomain.com), it works fine for "full mode" (flag = 0):

<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> </head> <script> function LoginToOWA(server, domain, username, password) { var url = "https://" + server + "/owa/auth/owaauth.dll"; // flags 0 = full version, flags 1 = light weight mode var p = { destination: 'https://' + server + '/exchange', flags: '1', forcedownlevel: '0', trusted: '0', isutf8: '1', username: domain + '\\' + username, password: password }; var myForm = document.createElement("form"); myForm.method = "post"; myForm.action = url; for (var k in p) { var myInput = document.createElement("input"); myInput.setAttribute("name", k); myInput.setAttribute("value", p[k]); myForm.appendChild(myInput); } document.body.appendChild(myForm); myForm.submit(); document.body.removeChild(myForm); } </script> <body onload="javascript:LoginToOWA('mail.someserver.com','yourdomain',' yourusername@someserver.com ','yourpassword');"> <img src="../../gfx/loadingAnim.gif" /> Please wait while your inbox is loading... </body> </html> 
+1
source

What version of OWA do you have? I did this before for our company intranet at OWA-2003. Just point your iframe to the web part url like this:

 http://server/exchange/user/inbox/?cmd=contents&view=Two-Line%20View&theme=4 

This will only work if your main website uses Windows Integrated Authentication. You must replace "user" with the registered username using the ASP.Net server code.

Search for MS KB articles for webpart options. You can show your inbox, calendar, etc.

0
source

Source: https://habr.com/ru/post/948715/


All Articles