Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

This may not be as complex as I'm making it within my own head... but here goes:

I have built a forms solution with life cycles and need to send emails within a filemaker script when the life cycle changes. My quick-fix is to use a global field with the email address of each approver that needs to receive the message.

What I'd like to do is pull the email address of each approver from a related user table where an approver field is marked true. The relationship is built and works brilliantly as a portal. But how would I be able to use all the related people in a script step for Send Mail?

Thanks for your help! It's Friday morning... I've been on this for days, I'm out of Mountain Dew, and my monitor is now cracking where my head has hit it repeatedly. confused.gif

Posted

I think what you need to do is send the email from the "user table" file. Then you can specify in the Send Email (I'm assuming you are using build-in email and not a plug-in) settings to use a field for every record in the current found set.

As an alternative, if you use an SMTP plug-in such as SMTPit, you can use a looping script to add email addresses as destinations.

-bd

Posted

One option:

create a valuelist, e.g. vl_Approver which draws values from the e-mail address field in the related file, based on the relationship you've already set up.

with a script, set the value of your global field to:

ValueListItems(Status(CurrentFileName), "vl_Approver")

and use the global field as the To: (or cc:, or bcc:) in your Send Mail script.

I'm assuming here that you want to send the same e-mail to many people at once.

  • 2 weeks later...

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