Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Download Message from Outlook Express
Message
From
30/12/2006 00:13:25
Prashant Dongare
Micropro Software Solutions
Nagpur, India
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Download Message from Outlook Express
Environment versions
OS:
Windows XP SP2
Network:
SAMBA Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01181026
Message ID:
01181026
Views:
63
Dear All,
Please help me with this problem.
I am using a MAPI object to mail a file as an attachment.
The code for the same is as follows:

WITH THISFORM.MP_S
.DownLoadMail = .F.
.LogonUI = .T.
.SignOn
.NewSession = .T.
bNewSession = .NewSession
THISFORM.MP_M.SessionID = .SessionID
ENDWITH
WITH THISFORM.MP_M
.Compose
.RecipAddress = ALLTRIM(LOWER(THISFORM.TXT_MailTO.VALUE))
.MsgSubject = "WEBUPLOAD"
.MsgNoteText = WS_MsgBody
.AttachmentPathName = "C:\Mast.dbf"
.Send()
ENDWITH
THISFORM.MP_S.SignOff

where MP_S is MAPI Session Object and MP_M is MAPI Mail Object.
This peice of code sucessfully sends mail with the attachment through the default mailing client installed on the machine.

Now I want to download only the unread mails with the subject "WEBUPLOAD" form the Inbox of the default mail client installed on the machine. How am I suppose to do it with the MAPI objects. Is there any other way around. Please help.
Thanks in advance.
Next
Reply
Map
View

Click here to load this message in the networking platform