AnsweredAssumed Answered

Can't send attachment in email

Question asked by deanchampeau on Aug 27, 2016
Latest reply on Aug 27, 2016 by philmodjunk



I have a script that's running on Server that uses the Send Email script step, and for the life of me I can't get it to send an attachment. I'm declaring the path by using a $path variable that I believe is correct. Since the directory path was the folder where FileMaker stores server-side attachments, I thought perhaps it was a permissions problem or something, so I copied the file to the desktop and tried using Get(DesktopPath), and that didn't work either.


My $path variable is constructed as follows...


"file:/C:/Program Files/FileMaker/FileMaker Server/Data/Databases/RC_Data_FMS/Global DB/Files/Prepress/EST_Estimates/pdfContainer/" & "Estimate " & MiddleValues ( Get(ScriptParameter ) ; 6 ; 1 ) & ".pdf"


I think the above syntax is valid, isn't it? I send a script result back to the client that was simply $path and the dialog box that popped up on the client looked like a good path.


Any clues?