|
-
Jun 19th, 2002, 03:01 PM
#1
Thread Starter
Addicted Member
Detect new incoming email and retrieve all emails
Does anyone have any sample code where you can detect all incoming email and all unread/old emails.
212 will lead you to the truth
-
Jun 19th, 2002, 03:05 PM
#2
PowerPoster
Well
What are you using Express? Outlook?
Remaining quiet down here !!!
BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....
-
Jun 19th, 2002, 03:10 PM
#3
Thread Starter
Addicted Member
Yes Outlook is my primary, however I would like to use any and all email address (i.e. hotmail). Which ever is easiest at this point.
212 will lead you to the truth
-
Jun 20th, 2002, 08:26 AM
#4
Thread Starter
Addicted Member
I found it:
MAPISession1.SignOn
MAPIMessages1.SessionID = MAPISession1.SessionID
MAPIMessages1.FetchUnreadOnly = True
MAPIMessages1.Fetch
If MAPIMessages1.MsgCount > 0 Then
Text1.Text = MAPIMessages1.RecipDisplayName
Text2.Text = MAPIMessages1.MsgSubject
Text3.Text = MAPIMessages1.MsgOrigDisplayName
Text4.Text = MAPIMessages1.MsgNoteText
Command4.Enabled = True
Else
MsgBox "No messages to fetch"
MAPISession1.SignOff
Command4.Enabled = False
End If
212 will lead you to the truth
-
Jun 20th, 2002, 08:34 AM
#5
PowerPoster
Well
I'm happy that you found it, but you should use a grid or something to "fetch" the messages, shouldn't you? What I mean is, what if more than 1 message found?
Remaining quiet down here !!!
BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|