When you save the file using $filepath, can you verify that the file is being saved to the specified location?
Is this all in one script or do you have one script saving the PDF and a second that does the send mail?
Ron - Yes the file is being saved to the specified location.
Phil - It is part of the same script, I have tried to copy and paste the complete script into this page but it does not work but have taken a screen grab and will attach if I can.
Tried but this reply does not allow for an attachment, I will set up another question with the same title (Almost) and attach !!
You can print a script to PDF and then open the PDF, then use the PDF reader's text tool to copy the text of the script to your clip board. If you have FileMaker Advanced, you can copy scripts from the database design report.
Two ways to add a screenshot to the thread:
- Click Edit on the very first post and upload the image there.
- Upload the image to a file sharing site and post the link to it here.