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