When a new record is created in my FMPro 5 db, I need to automatically send an email to a third party, with the record information included. Any ideas how to do this??
I'm using this form:
Code:
<FORM ACTION="FMPro" METHOD="post">[\code]
Thanks!
Sarah
Sorry but I have very little experience with FM and the web. I have a hunch that it is not possible with either IWP or CWP but maybe if you're using PHP or ASP. Anyway, I don't know the answer, maybe Jean does?
I took an old computer, installed FMPro client. Wrote a script that checks for a new record in the shared file every 60 seconds. If it finds a new record it triggers the email operation, marks the record as acknowledged and continues on checking.
Another way if you don't have a spare machine and use a Mac:
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.
so, be carefull....
I use a lot of old computers to do 'out of the box tasks',like a computer that just runs FileMaker scripts all day to print documents. They just search for flags in certain fields that mean a document 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.
With FM5 there was the introduction of the InLineActions, which give the possibility to play with CDML and perform several functions, like -find, -edit, -delete and -sendmail from within a single format file.
So, I suppose that the -sendmail action can be used.
I'm not familiar with the whole web and CDML world, only had a small touch of it years ago, so this is free hand coding....based on a memory that is not that young anymore....
I think to fire of a email you can use something along these lines:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.