Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Server and Email Question

Featured Replies

Hello,

I would like to use the sendmail script feature for a database telling the user that the request was received (once they hit the “save” button).

This database is going to be hosted by FMSA 8 on Mac OSX and do IWP. It’s a simple database for travel requests. Users will submit a travel requests and an admin will approve/deny or forward to committee etc.

I don’t have a default email client configured on a server. If I did, would someone need to be logged in at all times (to a server??)?

I am just not getting it. Any help or advice would be greatly appreciated.

Thanks in Advance

The Send Mail step is not web-compatible. You cannot use it in a script that's being activated by a web client.

Somebody will suggest a way of doing it on the server.

ANother method is to have a "drone" computer running FMP, commencted into the database, regularly running a "search for new requests and send an email" script.

  • Author

I am interested in the "drone" computer idea and more specifically how do you script something to run "regularly"?

thanks bunches

Loop the execution of the script with this:

http://www.filemaker.com/help/Script-Steps3.html

--sd

  • Author

Ok Wow... Thanks bunches to both of you

I am off to read and test.

Thanks again

  • 2 months later...
  • Author

I was hoping to get a little help with my script. It's looping too much and sending out a million emails

Perform Find- Submission_Status=Submitted

Loop

Send Mail

Set Field- Submission_Status=Test

Go to Record/Request/Page - next, exit after last

End Loop

Thanks in advance

Edited by Guest

I'm working off the top of my head here. How about:

Set Error Capture[On]

Loop

Show All Records

Perform Find- Submission_Status = Submitted

If (Not(Get(LastError)))

Loop

Send Mail

Set Field- Submission_Status = Sent

Commit Record/Request[]

Go to Record/Request/Page - next, exit after last

End Loop

End If

Pause/Resume Script[someValue]

End Loop

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.