Recieving mail to .NET app.

I have a Windows Forms booking system that uses a service to access data located in a central SQL Server. Ideally I would like all mail messages received to the booking-address to be stored in the SQL server so I can add information about the message, who answered it, add some intelligence when creating the booking etc.

I'd like som general guidlines on how to go about this. Is it possible to set up an Outlook client on the server and use the Outlook library to perform this task or is this a bad idea?

Any suggestions are most welcome.

Best Regards

Tomas
ekenmanAsked:
Who is Participating?
 
CodeCruiserConnect With a Mentor Commented:
If POP3 is not an option then you can install and run Outlook in the background and then read the emails from your application.

Check following examples

http://www.java2s.com/Tutorial/VB/0440__Windows/OutlookEmailwatcher.htm

http://www.codeproject.com/KB/aspnet/extract_oulook_2003_NET.aspx

0
 
Kalpesh ChhatralaSoftware ConsultantCommented:
you can read your pop3 mail from following link

http://www.dotnetthoughts.net/2009/03/02/reading-pop3-mailbox-using-vbnet/
0
 
CodeCruiserCommented:
>Ideally I would like all mail messages received to the booking-address to be stored in the SQL server

Is your question more about receiving emails automatically or storing received emails in sql server?
0
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

 
CodeCruiserCommented:
You can use custom fields in emails themselves when using Exchange/Outlook

http://www.slipstick.com/exs/customfields.htm
0
 
ekenmanAuthor Commented:
Thank you for your suggestions.

Kalpesh, regarding pop3 mail, there is a lot of MIME / Attachment issues with the first solution. It is to difficult.

Code Cruiser, my main object is to integrate mail handling in the booking system so that I can automate and save history in the SQL Server. If the users use Outlook or another mailprogram I can't see the history about the booking. So I guess the answer is storing received email in the sql server. It is a rather large system so it isn't an option to move it to Outlook.

The mailbox is with an ISP, but if it is the best solution I can install an Exchange Server on my server.

Best Regards

Tomas
0
 
ekenmanAuthor Commented:
Thank's!
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.

All Courses

From novice to tech pro — start learning today.