Jump to content

Send Mail - Attach based on data


This topic is 2791 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I created a script that creates a .PDF file in a specific location using a variable ($FilePath) to the file path:
"filemac:/Macintosh HD/Users/me/Documents/Letters/" & "You_" & List::CourseFaculty & "_" & List::CourseQtr & List::CourseYear & ".pdf"

This works fine and the PDF is created in the location specified. However, I am trying to figure out a way to script the Send Mail step (at a later date) to go to the $FilePath and attach the file created based on the employee name (same as above). I tried to simply list the variable $FilePath in the attach > file path, but with no luck

 

Link to comment
Share on other sites

Yes, but the same result. It may be a system issue. Even when I put in a direct path to an existing file, it appears to stall: It will add the recipients, but not the subject or message (or the attachment). If I uncheck the attachment box and run again, it will contain the subject and message.

Edited by crazybake
reran without attachment checkbox
Link to comment
Share on other sites

Just on the desktop and with no plug-ins. I am using Send Mail with a desktop client (not specifying the SMTP server) with Outlook 2016 and have not checked to see if there are any issues.

Link to comment
Share on other sites

Probably because the developer is on a Mac but that doesn't mean that the problem is happening on a Mac.  Also, Outlook is mentioned and Outlook is far more popular on Windows which makes me ask for clarification.

Link to comment
Share on other sites

2 hours ago, Ted S said:

Outlook is far more popular on Windows which makes me ask for clarification

Outlook and FileMaker do not always play well together. Did your read the link posted by Agnes Riley?

Link to comment
Share on other sites

1 hour ago, Lee Smith said:

Outlook and FileMaker do not always play well together. Did your read the link posted by Agnes Riley?

I did. In fact I experience the Outlook 32 bit vs 64 bit problem first-hand which is why I asked whether this is happening on Windows or Mac.

The author's original post suggests that it is a Mac problem (filemac:Macintosh...) but it doesn't hurt to confirm. Maybe he doesn't realize that Windows and Mac use a different syntax.

Link to comment
Share on other sites

This topic is 2791 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.