Rich S Posted October 9 Share Posted October 9 I'm close, but I don't know where I'm muffing it; the user receives the e-mail, but no .pdf file attachment. Here's the script text: WHen the script runs, I get the attached error message. What do I need to tweak? (Running FMS v20.x on a Windows network.) Cheers, Rich Link to comment Share on other sites More sharing options...
Ocean West Posted October 9 Share Posted October 9 in your $_Path don't put "file: " I usually do this after Save as PDF: SetVariable $url = "file://" & If ( Get ( SystemPlatform ) = 1 ; "/Volumes" ) & $_Path Insert from URL Dialog Off Target $attachment ; $url : cURL options: "--FM-return_container-varable" The use that $attachment variable in the email Link to comment Share on other sites More sharing options...
Rich S Posted Thursday at 06:19 PM Author Share Posted Thursday at 06:19 PM Thank you, but the user is still receiving an e-mail without an attachment. I _think_ it's because the $_Attachment variable hasn't been defined, yet, after making your recommended changes. (See attached.) What changes should I make? Thanks tons, Rich Link to comment Share on other sites More sharing options...
comment Posted Thursday at 06:46 PM Share Posted Thursday at 06:46 PM What happens if you do simply: Set Variable [ $path ; Get ( TemporaryPath ) & "ESU 7 Monthly Product Code Summary Report.pdf" ] Save Records as PDF [... ; "$path" ; ... ] Send Mail [ ... ; "$path" ; ... ] --- P.S. Please post your scripts as code, not as pictures. Link to comment Share on other sites More sharing options...
Rich S Posted Thursday at 07:45 PM Author Share Posted Thursday at 07:45 PM Beauty! Thanks, that works. ...and sorry about the pictures vs. code. Link to comment Share on other sites More sharing options...
comment Posted Thursday at 07:50 PM Share Posted Thursday at 07:50 PM Just now, Rich S said: that works. Good. Just a small note about the "file:" prefix: you don't have to use it in the present case. But if you do, it needs to be without the trailing space you have in your original script (which I believe would have worked otherwise). Link to comment Share on other sites More sharing options...
Recommended Posts
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