Solved

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

Posted on 2016-09-19
3
64 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 250 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 250 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
In-place Upgrading Dirsync to Azure AD Connect
how to add IIS SMTP to handle application/Scanner relays into office 365.
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

696 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