Jump to content

Server and Email Question


agtjazz

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

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 2 months later...

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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