Solved

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

Posted on 2016-09-19
3
41 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
  • 2
3 Comments
 
LVL 17

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

If you don't know how to downgrade, my instructions below should be helpful.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
This video discusses moving either the default database or any database to a new volume.

760 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now