RvH Posted July 17, 2009 Posted July 17, 2009 I am trying out the various functions provided by ScriptMaster 3 using the method of copying the scripts into variables of the start-up script of the test file. This works fine with ListAllFilesInDirectory and GetFileModificationDate, also after restarting the test file on its own (i.e. without ScriptMaster). However this does not apply to the SendEmail function. As soon as I restart FileMaker, the latter function disappears. When debugging the start-up script, the variable for this function shows to return "error" instead of "1" as for the other functions. The SendEmail capability returns as soon as I open the ScriptMaster file again. Can someone help me and tell me what I am doing wrong? Many thanks.
shmert Posted July 17, 2009 Posted July 17, 2009 After you receive the "error" response, call SMLastError to get a detailed description of the problem. I suspect you need to include the javamail.jar The ScriptMaster FileMaker file does this for you, but if you copy the script into your own startup solution, you're also responsible for loading the .jar using SMLoadJar.
RvH Posted July 19, 2009 Author Posted July 19, 2009 Indeed I did not load any of the jar files in my test setup. Many thanks for the quick advice.
Recommended Posts
This topic is 5617 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now