CDO is mostly used for sending e-mails. You could use the Outlook activex on a form and direct the activex to the Inbox. The accounts a usually set up in the registry.
Mike Gagnon
If you want to get the best response to a question, please check out FAQ184-2483 first.
Normally e-mails a received in an e-mail program (like outlook or outllok express) by using the send and receive button. So technically no, you cannot receive e-mails in VFP, but you can retreive the attachments of you e-mail messages. Take a look at faq184-1769 at the section for retreiving attachments from an e-mail
Mike Gagnon
If you want to get the best response to a question, please check out FAQ184-2483 first.
MAPI.session is intergrated with CDO (Collaboration data objects). It would seem that your system does not have CDO. You may consider automating Outlook to retreive you attachments.
Mike Gagnon
If you want to get the best response to a question, please check out FAQ184-2483 first.
* sometimes you need to restore default path - Outlook Express
SET DEFAULT TO (lcStoredPath)
WAIT CLEAR
RETURN Iif(lnResult=SUCCESS_SUCCESS, lnSession, 0)
FUNCTION mem2str(lnMemBlock)
#DEFINE BUFFER_SIZE 16
#DEFINE EMPTY_BUFFER Repli(Chr(0), BUFFER_SIZE)
LOCAL lnPtr, lcResult, lcBuffer, lnPos
lnPtr = lnMemBlock
lcResult = ""
DO WHILE .T.
lcBuffer = EMPTY_BUFFER
= Heap2Str (@lcBuffer, lnPtr, BUFFER_SIZE)
lnPos = AT(Chr(0), lcBuffer)
* sometimes you need to restore default path - Outlook Express
SET DEFAULT TO (lcStoredPath)
WAIT CLEAR
RETURN Iif(lnResult=SUCCESS_SUCCESS, lnSession, 0)
FUNCTION mem2str(lnMemBlock)
#DEFINE BUFFER_SIZE 16
#DEFINE EMPTY_BUFFER Repli(Chr(0), BUFFER_SIZE)
LOCAL lnPtr, lcResult, lcBuffer, lnPos
lnPtr = lnMemBlock
lcResult = ""
DO WHILE .T.
lcBuffer = EMPTY_BUFFER
= Heap2Str (@lcBuffer, lnPtr, BUFFER_SIZE)
lnPos = AT(Chr(0), lcBuffer)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.