Jump to content
Salesforce and other SMB Solutions are coming soon. ×
  • 0

Perform Script on server: Send Mail. Attachments not sending.


filemakeru

Question

filemakeru

I'm sending my emails via the Perform Script on Server script step. The email goes fine. I want to attach a file to the email. It's stored externally in a container, and I've created a calculated filepath like this:

 

filewin:/C:/Program Files/FileMaker/FileMaker Server/Data/Databases/RC_Data_FMS/NVHA Vision/NLG Wills & Estates/Mail Attachments/Attachment/Sample.pdf

 

the email sends fine, but the file is not attached. 

 

Any thoughts? Does FMS have access to that RC_DATA_ directory?

 

 

Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0
AHunter3

I don't think so; it certainly didn't used to at any rate. I think on FmServer you (still) have to choose between the Documents folder and the Temporary folder.  Unless they changed the rules and I didn't notice, those are the [i]only[/i] two hard drive folders available to FmServer.

 

Set Variable [$Path;  Get(DocumentsPath) & "Sample.pdf"]

Perform Script on Server [SendMail_Script; with script parameter $Path]

... which executes as

Send Mail {using SMTP Server} - To/Subject/Body etc with attachment = $Path

 

 

 

The file (in this case Sample.pdf) does need to be copied to the FmServer documents path.

 

 

 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

Terms of Use