crazybake Posted August 30, 2016 Share Posted August 30, 2016 I created a script that creates a .PDF file in a specific location using a variable ($FilePath) to the file path: "filemac:/Macintosh HD/Users/me/Documents/Letters/" & "You_" & List::CourseFaculty & "_" & List::CourseQtr & List::CourseYear & ".pdf" This works fine and the PDF is created in the location specified. However, I am trying to figure out a way to script the Send Mail step (at a later date) to go to the $FilePath and attach the file created based on the employee name (same as above). I tried to simply list the variable $FilePath in the attach > file path, but with no luck Link to comment Share on other sites More sharing options...
Agnes Riley Posted August 30, 2016 Share Posted August 30, 2016 Have you tried making your variable global? $$FilePath I stead of $FilePath? Just don't forget to clear the global variable when you don't need it anymore. Link to comment Share on other sites More sharing options...
crazybake Posted August 30, 2016 Author Share Posted August 30, 2016 (edited) Yes, but the same result. It may be a system issue. Even when I put in a direct path to an existing file, it appears to stall: It will add the recipients, but not the subject or message (or the attachment). If I uncheck the attachment box and run again, it will contain the subject and message. Edited August 30, 2016 by crazybake reran without attachment checkbox Link to comment Share on other sites More sharing options...
Agnes Riley Posted August 30, 2016 Share Posted August 30, 2016 That does not sound normal. Are you running the script on a desktop or the server? Also, do you have any plug-ins that could interfere? Link to comment Share on other sites More sharing options...
crazybake Posted August 31, 2016 Author Share Posted August 31, 2016 Just on the desktop and with no plug-ins. I am using Send Mail with a desktop client (not specifying the SMTP server) with Outlook 2016 and have not checked to see if there are any issues. Link to comment Share on other sites More sharing options...
Agnes Riley Posted August 31, 2016 Share Posted August 31, 2016 Outlook might be the culprit. I recommend using an SMTP server if you can. Do a little Google search on Outlook and FM. Here's one link that might (might not) help: http://help.filemaker.com/app/answers/detail/a_id/15190/kw/send email outlook Link to comment Share on other sites More sharing options...
Ted S Posted August 31, 2016 Share Posted August 31, 2016 Is this running on a Mac or a Windows machine? Link to comment Share on other sites More sharing options...
Lee Smith Posted August 31, 2016 Share Posted August 31, 2016 If you look at the profiles (left) it reveals that all off the posters are on a Macintosh, why? Link to comment Share on other sites More sharing options...
Ted S Posted August 31, 2016 Share Posted August 31, 2016 Probably because the developer is on a Mac but that doesn't mean that the problem is happening on a Mac. Also, Outlook is mentioned and Outlook is far more popular on Windows which makes me ask for clarification. Link to comment Share on other sites More sharing options...
Lee Smith Posted August 31, 2016 Share Posted August 31, 2016 2 hours ago, Ted S said: Outlook is far more popular on Windows which makes me ask for clarification Outlook and FileMaker do not always play well together. Did your read the link posted by Agnes Riley? Link to comment Share on other sites More sharing options...
Ted S Posted August 31, 2016 Share Posted August 31, 2016 1 hour ago, Lee Smith said: Outlook and FileMaker do not always play well together. Did your read the link posted by Agnes Riley? I did. In fact I experience the Outlook 32 bit vs 64 bit problem first-hand which is why I asked whether this is happening on Windows or Mac. The author's original post suggests that it is a Mac problem (filemac:Macintosh...) but it doesn't hurt to confirm. Maybe he doesn't realize that Windows and Mac use a different syntax. Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 2767 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