?
Solved

Save Messages (called tickets by the compagny) to a SQL Server Database .

Posted on 2016-09-19
3
Medium Priority
?
71 Views
Last Modified: 2016-10-12
I have to save email détails in our database using C# . I found that writing a macro in outlook or writing outlook plugins could do that for me , but with that approach we must do this for every Outlook contact .

So after searching I found that the best approach is to do that within the exchange server to watch over a specific mailbox for incoming emails .

How can I do that please ? I'm quite new to the field . Could please provide me some solution with implementations .
0
Comment
Question by:Zakarya ISSER
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 18

Assisted Solution

by:xtermie
xtermie earned 1000 total points (awarded by participants)
ID: 41806046
You can try an existing Outlook Add-on that does this www.geniusconnect.com

Link the Outlook Folder(s) to your table and check "Auto Save" option. This will save sent items automatically to DB.
0
 
LVL 28

Accepted Solution

by:
Ryan McCauley earned 1000 total points (awarded by participants)
ID: 41812650
It depends on your version of Exchange - what was called an "Event Sink" in 2007 and earlier can now be handled by a "Transport Rule" or "Mail Flow".

Event Sinks allow you to register custom code on the Exchange server that will execute at specific points in message processing (when a message is received or sent, as one example):

https://support.microsoft.com/en-us/kb/317680 (Example of a sink when mail is sent)
https://support.microsoft.com/en-us/kb/324021 (Example of a sink when mail is received)

On newer versions of Exchange, this is accomplished via "Transport Rules" and "Mail Flows":

https://technet.microsoft.com/en-us/library/jj919238(v=exchg.150).aspx

Though a bit less flexible, they appear to be significantly easier to implement as they're native functionality (rather than custom code), though they appear to allow for custom code execution as well rather than just the pre-defined options. I've never used them before, but they appear to cover what you're looking for.
0
 
LVL 28

Expert Comment

by:Ryan McCauley
ID: 41839746
Both comments contributed with different approaches, but either woudl work.
0

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are times when we need to generate a report on the inbox rules, where users have set up forwarding externally in their mailbox. In this article, I will be sharing a script I wrote to generate the report in CSV format.
This article describes how to import Lotus Notes Contacts into Outlook 2016, 2013, 2010 and 2007 etc. with a few manual steps. You can easily export and migrate Lotus Notes contacts into Microsoft Outlook without having to use any third party tools.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question