How to fix a script that enabled me to send emails via my email client?

I'm trying to fix a script that someone put together for me -- I guess it's a trigger script that would work when clicking on an icon with email and an arrow -- that was originally created to send emails (in the corresponding field) via Thunderbird. It would send new emails from Filemaker with Thunderbird -- unless I toggled a setting (a checkbox to ignore Thunderbird), and then it would send emails through the default email client.

I've since switched to Mac's standard Mail app. Unfortunately, my Filmmaker database hasn't been responsive to that checkbox / setting; it kept trying to send emails to Thunderbird no matter what I do.

So, I changed the the script below -- only switching out Thunderbird with Mail -- which has prevented the script from opening Thunderbird, but doesn't create new mail with the corresponding email address.

How can I fix this script so that it can create new mail in Mac Mail, while referencing the email address stored in my Filemaker database's email field?

Many thanks!

  • what versions of FileMaker and macOS are you using?
  • try stepping through the script using the debugger - does it actually get to the correct part of the if / else statement? If not, the problem may actually be with your Settings::gUseStandardMail field

Line 10: If [ Settings::gUseStandardMail = 1 ]

This can be changed to If [ True ]

1 Like

THANK YOU !!!

Cannot tell you how long I've waited to figure out how to fix this! I'm very grateful...

Thank you -- again!

You would gain more functionality (like logging of email success/fail), API based credentials, and portability, if you moved away from a desktop email client, and adopted one of the email services out there.

Personally I use BREVO (formerly SendInBlue), which is free for something like 300 emails a day. Platform independence, and monitoring capabilities, along with avoiding email credential issues, makes the transition worthwhile, IMHO