473,503 Members | 11,783 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to know received mails downloaded from outlook

1 New Member
I am using vb.net 2003 ,to develop the programe to download the emails from outlook. its working properly. but i have one problem, whenn the start event run. i donot know when will all the email will be loaded . will any body help me to find out solution for this . following is there my code.
Dim oNS As Outlook.NameSpace
oNS = oApp.GetNamespace("mapi")

oNS.Logon(missing.Value, missing.Value, False, True)
Dim oInbox As Outlook.MAPIFolder
oInbox = oNS.GetDefaultFolder(Outlook.OlDefaultFolders.olFo lderInbox)

Dim myStoreId As String = ""
myStoreId = oInbox.StoreID

Dim oSyncs As Outlook.SyncObjects
Dim oSync As Outlook.SyncObject

' Reference SyncObjects.
oSyncs = oNS.SyncObjects
oSync = oSyncs.Item(System.Configuration.ConfigurationSett ings.AppSettings("OutlookServer"))

' Send and receive.
oSync.Start()
Q : what i do here to know when all mails are downloaded in inbox
Oct 11 '07 #1
0 962

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1800
by: el | last post by:
Hello, I wrote a tool which read an outlook folder and save the mails to the hard disk (in .msg files) Here below one of the main sub of my tool. I don't know why but sometimes, this...
1
1351
by: Richard | last post by:
Hi Friends, How can I read and delete outlook e-mails from vb.net. I'll appreciate your help. RC
4
2008
by: ethan220 | last post by:
Is it possible to read Outlook mails in PHP?? I would like to create a php program that reads mails from a particular person which are downloaded in MS Outlook. Ethan
1
1613
by: Dirk Goossens | last post by:
Hello! I'm sending E-mails to mailadresses in a table, using the code below. How can I send more than one attachment? Access can find the file to be send in this field: MY_EMAILATTACHMENT_FIELD...
17
7610
by: rdemyan | last post by:
My app creates a building report. My users have requested that I provide functionality to e-mail these "building reports" to building managers once a month. So assuming that I have the...
2
6194
by: beeswax | last post by:
Hi, Does anyone knows how to read e-mails from a specific folders in outlook? I only found out how to read the mails from the inbox folder and how to list all available folder. I just don't...
1
1238
by: =?Utf-8?B?WWlhbm5pcw==?= | last post by:
Hi, I'm using MS Outlook 2007 that syncs with an Exchange 2000. The default delivery is my .pst file. This morning the sync was failing for some reason (no error) so in order to continue my work...
0
1035
by: poobalan | last post by:
Hi, I have developed a application for my compnay.. the process of the application is.. 1) it simply read the mail from Mailbox(Outlook) and stores it to Sql Data base. 2)...
4
4830
by: angel1982 | last post by:
I have this requirement where I have to store outlook mails into database and retrieve as necessary. The mail has to be retrieved back in outlook window itself, and not in any other format. The...
0
7194
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7316
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5566
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3148
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1495
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
729
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
372
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.