Jump to content

Send mail with variable PDF


Per Waagø

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

Recommended Posts

That actually came from your InvoiceDemo.fp7 I referenced in my first post here.

It works for the Save Records as PDF command, but not the Send Mail command (at least while With Dialog is set to Off).

Link to comment
Share on other sites

16 hours ago, bcooney said:

“file:$folderPath” 

Looks like it's in quotes! Should simply be $folderPath.

Agreed: you can't use a calculation in these place, you just need to reference the variable.  If the "file:" prefix is necessary you should include it when setting the variable.

Link to comment
Share on other sites

9 minutes ago, Wim Decorte said:

If the "file:" prefix is necessary you should include it when setting the variable.

That is not necessary:

file:$variable

and even:

file:$pathToFolder/$fileName

are perfectly valid file paths.

Link to comment
Share on other sites

16 hours ago, bcooney said:

This is indeed the answer. Pending a solution for the bug which FileMaker is aware of, the Send Mail script step can be used to send a message with an attachment if it is set to No Dialog and if you use the Send via SMTP Server option. Here are the directions for doing that:

http://help.filemaker.com/app/answers/detail/a_id/6991/~/support-for-sending-mail-via-an-smtp-server-vs.-an-email-client

The only potential downsides I see are: you need to know your email SMTP settings and you won't end up with copies of the emails you send in the Sent folder of your email program. 

Thanks everyone for your contributions.

Link to comment
Share on other sites

This topic is 2838 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.