Jump to content

Web Clients - Generate Email


wjmartin
 Share

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

Recommended Posts

I have remote web clients filling in a form and commiting their record with a scripted button click. Problem is, whenever a new record is created I want FM to fire off an email to alert the DB admin that a new record has been created - but email generation is not actionable by the web client.

Anyone got any ideas - just basic pointers - on how I can trigger an email whenever a web client makes a new record?

Link to comment
Share on other sites

There may be a much better solution, but this is one way to accomplish your goal.

Take an old lime green Imac from your basement. Install FMPro client. Write a script that checks for a new record in your shared file every 60 seconds. If it finds a new record it triggers your email operation, marks the record as acknowledged and continues on checking.

Link to comment
Share on other sites

Another way if you don't have a spare machine:

Find a machine that is never turned off, and set up a 2nd account on it. Use Fast User Switching to go to that account, log in via filemaker, then use FUS to go back to the normal os x user.

Rumor is you can even use FUS on the server machine itself, though certain folks will claim it's an unholy abomination and will cause the filmaker gods to strike you down, etc.

Link to comment
Share on other sites

Hi William,

I think lime green was the most popular color of iMac so it's a pretty safe guess.

I noticed that you are a printer. I own a small print shop in Seattle and we have a couple of iMacs in our business that just run FileMaker scripts all day to print invoices and package labels. They just search for flags in certain fields that mean a label needs to be printed. They do the work, clear the flag and go on with their searching.

This same basic process could work over the web because the remote user is simply placing a value in a field or running a script that places a value in a field. The computer that actually does the work is a regular FileMaker Pro client with the ability to print, email, fax, etc.

FileMaker robots are great employees. Our two robots have have worked for the company for about 5 years and have never had attitude problems or asked for a raise.

Pat J Monks

Nikkomedia.com

Seattle, WA

Link to comment
Share on other sites

  • 2 weeks later...

I fire off an email from a variety of actions, including adding certain types of records, changing their status, etc.

Using FMP8A as the server, you have a client running. Using a similar tech to what someone mentioned, it is running an event loop, pausing itself for a minute, checking for work, and looping. Events that need to send mail write a message into a mail queue. The event monitor checks the queue for mail and sends it using "SendMail" plugin (most will work). The event queue also automate's backup, checks for certain constellations of data and triggers a message, prunes logs files, etc.

Link to comment
Share on other sites

This topic is 5705 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
 Share

  • Similar Content

    • By JDW
      Our company still uses FMP 11 Advanced because hosting online via IWP is much, much cheaper than hosting with a modern version of FMP.  Currently, we pay double to have two different FMP 11 databases hosted online.  One database contains 900 records and is open to the public with no password, and the other has several thousand records and requires a password.  
      In hopes of cutting our hosting cost in half, I would like to combine the two databases into one database, such that we need only pay to host 1 database.  But our need to password protect certain records remains.  
      In other words, I want to put the content that doesn't require a password inside the FMP database file that has data we want to protect.  I know it's possible to combine the two databases, but that would mean we can no longer use a main password to lockout the entire file, as that would lock out everybody.  I would like to know if I can use FMP 11 Advanced to password protect only certain records within a single database file?
      Thanks.
    • By AlesD
      Hi I can not fiddle out how to make it work. I have tried several browsers with same result. We are using FM 12 server. I tried this file paths
      file:///C:/file.jpg
      C:/file.jpg
      file://localhost/C:/file.jpg
      and few others
       
      I'm using this code in the Web Viewer which is working fine in FM client but not in browser
      "data:text/html, <html> <head> <style type=text/css> " & table::style & " </style> </head> <body> <div class='thumb'> <span class='helper'></span><img class='thumb' src='" & table::ThumbnailPath & "'> </div> </body> </html>"  
      If it's caused by fact image is not present in web site folder as stated in document then my question is if it possible use unc network path in filename like file://///other_than_fmserver/networkpath/file.jpg. I wasn't successful either. 
      Any help appreciated
       
      Thank you
    • By KevinArevalo
      Good morning! I need some help getting something working.
       
      We have a company website, and we are trying to create a instant web publishing portal for our customers to login and view their open invoices. Pretty simple. We have all of our information on a FileMaker solution that is hosted with FileMaker Server 12. The problem is we can't get it to work the way we want it to. 
       
      This is our idea and how we kind of want it to work. We want the have our customers create their accounts/passwords on our actual website. We will store their account information on our web server. We will authenticate their login on our web server. Then, after they log into our website, we want to take their username, bypass the filemaker instant web publishing login page, and then set their username (which they used to log into our website, not filemaker) to a global variable or a field or something, we just need it in filemaker so we can do searches on it. We have the instant web publishing layouts built and we can get all that part working fine, we have the login authentication working on our site, that part is fine. It's just bridging the two together. 
      We are using WordPress to build the website, and our site is hosted on GoDaddy. Our problem is that we can't find a way to auto-login and bypass the login web publishing page. We currently have one account called "WebLogin" which we have been trying to use as a general login (since the actual customer login is authenticated on our website, not FileMaker) but we can't seem to bypass the page. I found this page through google searching: http://lnx.acidsoft.net/problemsolved/bypass-filemaker-iwp-login-via-url.html
      and tried to do it the way that he describes, but it is not working. It gives me an error saying:
      Bad Request
      The server could not process your request due to a missing command: ""
       
      And I get another dialog box that says: 
      Bad Request
      The server could not process your request because your session has timed out, been closed, or communication with the server has been lost.
      Please reselect the database to begin a new session. If you cannot open the database, please contact your database administrator.
       
      That is one of the problems, how can I resolve this?
       
      My other problems is we are trying to pass through the username that the customer uses to login to our website as a variable in filemaker or even set it to a field. I am not sure how to do this. Is this even possible?
      Thank you so much!
    • By djlane
      I have an application that was using IWP under FM Server 12, to allow my friends and friends of friends to upload their golf scores, and my system would calculate their USGA handicaps.
       
      After upgrading to FM Server 13, IWP not longer exists, and WebDirect does not support mobile devices.
       
      So, I set up an alternative server using FM12.
       
      A lot of guys that I don't have contact details for, used that IWP based system to upload golf scores. So I don't have a way to tell them all the new URL.
       
      Using the old IWP URL, you are presented with a screen that says "The requested page is not found. Check the URL you are using to access FileMaker WebDirect."
       
      I want to edit that page to add some additional information telling them the new URL etc. But I can't find any document with that content in any FM Server folder or sub folder. 
       
      Anyone know where I can find it ?
       
      thanks
    • By cchaski
      Hi, I have a databse hosted in IWP that uses Supercontainer for people to upload documents. The process works fine when I use FMPA 12 to access the hosted database, but when I go through the web browser (the IWP approach), the process does not work. A button "Upload Doc" calls a script that goes to the upload layout, generates the SC id code for the record, shows the webviewer with upload and delete buttons. This works fine when I am using FMP to access the database, but this does not work when I use IWP. When I click the button in IWP, nothing happens. Any ideas?? Thanks in advance!
×
×
  • Create New...

Important Information

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