Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Verify MAPIMessage.Send
Message
From
12/03/2000 14:01:21
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00344712
Message ID:
00344737
Views:
32
David,

Hmmmm, It will load Outlook when I .send(.F.) and send at once. It will pop up the message if I .send(.t.) and allow it to be edited. Then if you press the send button it goes...

Sent Mailbox... let me look that up

Thanks

>John,
>
>I don't think you can check it from MAPI. Send is asynchronous. All that did was spool the email to the Outbox, and it won't get mailed until the Outbox is actually served up to the SMTP server. You might be able to poll the Sent mailbox sometime later.
>
>>How do I check to see if a MAPIMessage.Send is sucessful?
>
>>  IF ThisForm.chkComments.Value
>>    .MsgNoteText = "Add your comments then press Send"
>>    .Send(.T.)
>>  ELSE
>>    .MsgNoteText = "See Attached Error File"
>>    .Send(.F.)
>>  ENDIF
>>  ** Gotta Figure out how to tell if sucessfull!
>>  lnAnswer = MESSAGEBOX("The Error File was sucessfully e-mailed.";
>>    +CHR(13)+"It is not needed by the system any more.";
>>    +CHR(13)+"Do you want to DELETE it now?",;
>>    32+0+4,"System Message")
>>  IF lnAnswer = 6 AND FILE((lcAppDir + "\PjtManEr.txt"))
>>    DELETE FILE (lcAppDir + "\PjtManEr.txt") RECYCLE
>>  ENDIF
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform