Click here to Skip to main content
15,887,376 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I want know how do i open Outlook online Web Application using SharePoint Provider Hosted App.

I have open Outlook Client Application in Local Machine Using Below Code.

I want to know same as to below code for Outlook Online Web Application

What I have tried:

<p
C#

re> Microsoft.Office.Interop.Outlook.Application oApp = new Microsoft.Office.Interop.Outlook.Application();
MailItem mailItem = oApp.CreateItem(OlItemType.olMailItem);
mailItem.To = "bent@udaradevlab.onmicrosoft.com";
mailItem.Subject = "This is the subject";
mailItem.HTMLBody = "This is the funky message body";

<pre lang="c#">

mailItem.Importance = OlImportance.olImportanceHigh;
mailItem.Display(true);
Posted
Comments
David_Wimbley 5-Sep-17 12:22pm    
Are you using outlook to send an email? Why not just send the email using SMTP class?
https://msdn.microsoft.com/en-us/library/system.net.mail.smtpclient(v=vs.110).aspx

I don't know why you would need to open outlook on a remote server to send an email.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900