February 22, 201015 yr Newbies I am using FileMaker Pro 10 Advanced to program a Send Mail script for a client that is using FileMaker Pro 9. After the email is sent, a note is created for each contact that the email was sent to. If the email is not sent, the note is not created. Therefore if the user cancels the email by closing the send mail dialog, the script is supposed to exit without creating the note. Both FileMaker Pro 10 and FM Pro 10 Advanced detect the user canceled action as Error 1. FM Pro 9 does not detect any error. In all cases Microsoft Outlook 2007 is the default email client. Is there a way to get FM Pro 9 to detect when a user has canceled the send mail script step by closing the send mail dialog? I have tried trapping FM Error 1, but no error is generated when the user closes the Send Mail dialog in FM Pro 9. Edited February 24, 201015 yr by Guest
February 28, 201015 yr I would turn off "Allow User Abort" which enables the user to cancel the script, and add a dialog box into the script at the point where the user might cancel it. If the user then clicks on "Cancel" in the box, you can capture it and exit the script. If the user clicks OK, then he must be satisfied with the email and it would then be sent.
March 1, 201015 yr Author Newbies Thanks I've already implemented your solution. The user has the chance to exit after cancelling or sending the email. I realized that FM Pro 9 will not detect any send mail errors. : Is there a way to get the email error codes to work in FM Pro 9?
Create an account or sign in to comment