dmw3 Posted September 24, 2012 Posted September 24, 2012 We have a script that will pull records of a find and then export them to an .xlsx file on the FileMaker server. Cannot find a way to then email that file via SMTP from the server in a script step using a server-side schedule. Script below: Perform Find (Restore) Set Variable [$path; Value: "filemac:" & Get (DocumentsPath) & "export.xlsx"] Export Records {No dialog; "$path"; Unicode (UTF-16)] Show all records This script successfully exports the found records to the default store on the server, now how to email this as an attachment?
dsghs Posted September 24, 2012 Posted September 24, 2012 Use the send mail script step and put $path as the attachment.
dmw3 Posted September 24, 2012 Author Posted September 24, 2012 When running the schedule on the server, I get an event report emailed, but no attachment. Do I need to put the SMTP details into the send script step or just have the details in the server schedule? Its strange that you can set an email schedule on the server but not have the ability to add an attachment.
dsghs Posted September 25, 2012 Posted September 25, 2012 I've never used the email schedule on the server.. try putting the smtp deets in the send script. Then just run the script as a scheduled script and not an email schedule.
Recommended Posts
This topic is 4502 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