Josh,
Thanks for the scoop. Because I also needed to initiate the dial-up, all from within VFP without the user having any interaction, I went ahead and purchased the Internet Pack from Mabry Controls. It is very inexpensive, fantastic to use, offers everything that I needed, as well as some other controls for FTP, RAS, etc. However, I have saved your code example for later... There may be a time where it would be better to use MAPI.
Thanks again,
Patric
>You can do this with the MAPI controls. First, set the message control's FetchUnreadOnly property to .T. Then you can use the control's Fetch() method to get new messages. Something like this:
>
>WITH THISFORM.oleMessage
> .Fetch()
> IF .MsgCount>0
> FOR i=0 TO (.MsgCount-1)
> .MsgIndex=i
>
> ENDFOR
> ENDIF
>ENDWITH