• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 278
  • Last Modified:

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
0
ekenman
Asked:
ekenman
  • 3
  • 2
1 Solution
 
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
 
CodeCruiserCommented:
You can use custom fields in emails themselves when using Exchange/Outlook

http://www.slipstick.com/exs/customfields.htm
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

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