program to read email and store it

Posted on 2000-03-12
Last Modified: 2013-11-13
I want to write a program that reads email and stores it in a dbase database file. This program should not require any interaction from the user. This program will be running automatically at fixed intervals without user invocation and checking the emails.

I know MAPI controls can be used to read emails but I am not able to figure out the following:
-how to read attachments?
-how to make it not ask for any user input?
-how to make it run automatically in the background at fixed intervals.

Question by:osho121097
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
LVL 10

Expert Comment

ID: 2610654
so you want to make a Eudora™ in vb?

Author Comment

ID: 2612416
What is an Eudora? I want to do this using only Visual Basic and would not prefer using any thiird party tools.
LVL 10

Expert Comment

ID: 2613582
Eudora is a mail client program ... its just what i use to check my mail, so I said this program you want to make seems like that program.  But i'm sure all mail clients are basically the same.
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.


Accepted Solution

gelog earned 300 total points
ID: 2613859
MAPI is a good choice if you have installed MS Exchange service and want to store messages in the Exchange (Outlook) folders. But your task is not the same.

Use MS Winsock Control to communicate with mail (POP3) serever. To build the app with Winsock Control you have to learn the basics with MS documentation and read RFC1939 ( Also, take a look at the number of tutorials on There is the article about the use of POP3 protocol (, the tutorial how to build a Mail Checker ( and the sample app ( that retrieves emails with attachments from POP3 server.

Author Comment

ID: 2614688
Thanks for the reply but I would like to use Mapi controls only and also please answer my full question if you can.



Expert Comment

ID: 2618171
A sample answer from someone would be really nice.

MS documentation is tough to understand.

I too have an existing VB app that I would like to automatically check the user's email and either store the email (?attachment) in a directory or put it into his Inbox if the email does not belong to my App.

Author Comment

ID: 2620214
I accidently accpeted the reply by gelog. How can I unaccept it?

Featured Post

Industry Leaders: 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!

Question has a verified solution.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
This article will show, step by step, how to integrate R code into a R Sweave document
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

705 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