General information
Category:
ActiveX controls in VFP
Title:
Download Message from Outlook Express
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only