• Status: Solved
  • Priority: Medium
  • Security: Private
  • Views: 14
  • Last Modified:

Outlook Add-in in VB.net?

I have a very simple task I would like to be able to do: Add a button to outlook that will send a copy of the current message to a remote server via HTTP POST.

The use case is simple: we have email messages that we want to archive and attached to a web-based system. To do that, the simplest thing to do is give the users a button which, when clicked, gets the email (along with teh to / from / attachments, etc...) turns them all into  JSON string, which will then POST the values to an API for the web application.

can anyone give me some links to tutorials that will get me acquainted with:
1. The process of building a simple add-in
2. accessing the "current email" mail object and its properties.
0
DrDamnit
Asked:
DrDamnit
  • 3
  • 2
1 Solution
 
Jacques Bourgeois (James Burger)PresidentCommented:
I cannot tell you how to do what you want to do, but it's definitively not through a .NET Add-In. Outlook object model and programming is very different from what you find in Excel and Word. There is no template in Visual Studio .NET for Outlook add-ins (unless I missed something in all my years of working with Microsoft programming tools).

I would post your question with other topics. Maybe this can be done in VBA in Outlook. But I would be surprised if it could be done through an "Outlook add-in".
0
 
DrDamnitAuthor Commented:
https://www.add-in-express.com/docs/net-outlook-addins.php

This send to be very close to what I need, what are your thoughts?
0
 
DrDamnitAuthor Commented:
*seems
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
Jacques Bourgeois (James Burger)PresidentCommented:
This is a third party tool that I have never used and have never heard of before today. So i have no thought about it...

... except that they do not offer support for the portion of their software that I, sorry, you need: We do not provide support for issues and questions related to the Office applications object model for the "Add-in Express Regions for Microsoft Outlook and VSTO" and "Security Manager for Outlook" products.

If Microsoft included add-ins for Word and Excel in Visual Studio .NET, and if they did not do it for Outlook, there should be a reason. And that reason might have to do with the fact that a company offers support for their tools to create Word and Excel add-ins, but not for their tools for Outlook.

... except that it is one of these companies that do not sell their software, they offer it through a subscription model. I will never go for a subscription model, not for music, not for software, not for anything, except Netflix. Because I have music that I have been listening to dozens of times in the last 30 year, software that I have been using everyday for more than 10 years, but almost never see a film more than once, maybe twice (after a few years).
0
 
CodeCruiserCommented:
James, have you seen this?

https://msdn.microsoft.com/en-us/library/cc668191.aspx


Some more resources

Adding button programmatically
https://msdn.microsoft.com/en-us/library/office/bb410039(v=office.12).aspx#OL2007BuildAddInUsingWPF_CreatingtheAddMenuBarMethod

Get selected mail item
Dim objApplication As Outlook.Application = Globals.ThisAddIn.Application
Dim objInspector As Outlook.Inspector = objApplication.ActiveInspector()
Dim objMailItem As Outlook.MailItem = CType(objInspector.CurrentItem, Outlook.MailItem)

Open in new window

0
 
DrDamnitAuthor Commented:
This is the jumping off point I needed. Thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now