I'm trying to integrate our (C#) WPF application with 2007 Outlook Interop. I've got it working as it should, but I'm getting the security warning. I know that using Redemption is an option to "get around the bush," but I don't want to just get around the problem, I'd like to somehow allow access via credentials or something. This isn't an add-in. I'm simply using the interop to interact with the users client session of Outlook.
Is there anything that I can do to create some credentials that I can pass through from my app to prevent the security warning from showing up when my application is accessing the Outlook session?
Thanks!
The only way to disable the security prompt is to have an up-to-date AV app installed. If you cannot control the environment, then it is Extended MAPI (C++ or Delphi) or Redemption (any language).
You can also move your Outlook related code to a COM addin (addins are trusted).
Related
I am trying to write an Add-in to Outlook 2016 and I want server-side rules (Transport rules, aka Mail Workflow) to be applied to my Outlook email locally not on Exchange online. The concept of My my Add-In is next: download server-side rules , apply to an email and send it.
The maximum I have achieved was connecting to Exchange Online server and using Get methods in PowerShell to download server rules. I did not find related API only old VBA Outlook 2007
Is there any API to do so? Are there any other ways to do so?
AFAIK there are no automated ways to convert or export transport rules to client/Outlook rules. However, the Outlook Object Model (OOM) has good support for creating and managing Outlook rules via VBA, a COM add-in or a custom desktop application using OOM. The actions and conditions may not be 100% identical but you should be able to convert the majority of rules. See: Managing Rules in the Outlook Object Model.
I have a hosted web application with Web-API 2 and I have a VSTO Outlook 2013 add-in.
Is it possible to connect the Outlook add-in to a RESTful Web-API?
A user must be able to login inside of the Add-in and the Add-in itself needs access to the business logic on the web server.
Or do I need to realize the Outlook add-in with the new Office365 approach? Which is basically a web application and html/css/js. In that case a connection to a RESTful api seems a lot easier. My Outlook add-in needs to support 2013 and 2016. Does the new approach supports Outlook 2013?
Yes, you can connect to a RESTful Web-API, and even more, from your vsto addin you can do everything you can do in usual windows applications, with very small restrictions. Office 365 approach allows you to connect, too, but it has many restrictions, similar to webpages. Upside is that it is more crossplatform, it's not restricted to Windows/x86, but works or will work in future in other platforms.
I am developing a little outlook Add-In, wich gives the option on the appointement-contextmenu to automatically fill out and set the start/ end the of the out of office message. I have managed to extend the contextmenu and get the start-/ endtime of the chosen appointement.
Now I would like to know, how that I can access the out of office template.
The Outlook object model doesn't provide anything for that.
You may find the Automating Out of Office in Outlook (VBScript) sample code helpful. Consider using EWS, see EWS Managed API, EWS, and web services in Exchange for more information.
I want to create an Outlook Add-In that will forward an email to a document library in SharePoint 2010. I've started off by using the Outlook Add-In template and have so far created the ribbon interface and button. This works fine and I can see it in Outlook and click on the button.
The next bit is where I am a little lost; I've added a reference to the SharePoint.dll but I cannot access it in the Outlook - ThisAddIn.cs. Is this not possible or am I missing something?
The solution is to select an email, click on the button that I have created on the ribbon within Outlook, this will load a list of Companies that the email can be associated with via a listbox in SharePoint and then strip and upload the data.
I'm competent in the retrieving and adding information to SharePoint but have never done this in an Outlook Add-In.
I am new to VSTO development so any pointers would be much appreciated.
Thanks
I've added a reference to the SharePoint.dll but I cannot access it in the Outlook
You can only use the Microsoft.SharePoint.dll object model from code actually running on the SharePoint server - not on remove PC's such as your users PC's.
Instead you need to look into SharePoints Web Services or the Client Object Model.
How can I invoke Outlook window on server-side through a click button with an attached file located on the root web folder?
If you're trying to allow the user to upload an email and then send it, you'd be better off following this tutorial:
https://web.archive.org/web/20211020150716/https://www.4guysfromrolla.com/articles/080206-1.aspx
Automating a client app server-side is a bad idea. What if Outlook prompts the user to do something? Who will be there to answer the prompts?
Also, any version of Outlook at or higher than the 2003 version WILL prompt if you try to automate sending emails, so this isn't even feasible unless you have an old version of Outlook on the server.