1 Reply Latest reply on Jan 25, 2017 9:06 AM by planteg

    Hide "hide e mail could not be sent successfully filemaker"

    barand

      Hello Filemaker users,

       

      I have the script step SendMail configured. When I run it I get the "hide e mail could not be sent successfully filemaker", but the targetted e-mail address does receive the e-mail. How can I hide the error?

       

      Kind regards,

       

      Baran

        • 1. Re: Hide "hide e mail could not be sent successfully filemaker"
          planteg

          Hi barand,

           

          in your script you need to capture the error by using the Set Error Capture [<on or off>]. By setting it on, you are now responsible to deal with errors. Once error capture is on, the after a script step that may fail, use Get(LastError). This will return an error number, 0 is all is well. In case of an error, you can display a more meaningful message to the user and alter the script execution.

           

          You say that even if an error is displayed that the em-mails get to the recipient. That's strange. Once you know the error number, you will be able to figure out what's going on.