FileMaker Pro 9 - I'm hosting the master file online with a hosting company that hosts FMP databases.
Main Topics
Browse All TopicsI would like to create an automated email that is sent to me based on a certain date.
For example:
Client = John Doe
Email = john@domain.com
EventDate = 09/20/2009
Balance = $100
BalanceDue = 30 Days before EventDate
---
Send automated email to myself on BalanceDue stating that Client at Email needs to pay Balance immediately.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
You need to run a script (daily) that finds records the where BalanceDueDate = Today, then email each of the matching clients.
FileMaker 10 has an "onTimer" script trigger which could help to do the job. Also if you had the database on FM Server v10 it can run scheduled scripts.
It is worth checking with your FM hoster to see if they offer any scheduled script capability.
Uusally with FileMaker 9 you will need to use a plugin (or other extra software) like one these options:
Troi Automater
or
myfmbutler DoScript
or
myFMbutler AutoSender
http://www.troi.com
http://myfmbutler.com
I have put together a demo file for you.
One limitation is that you need a FileMaker window to be open for the program to continue to run. It also needs a net connection of course to send the email. So essentially you need a computer somewhere with the database open.
It is OK to have the database hosted with an online service but you still need a 'workhorse' computer to handle the emailing process.
The 'workhorse' can do other things, it just has to keep the 'special' FileMaker window open.
I've tested the solution and it happily emails me (I put in it my gmail settings which I've now taken out) every 60 seconds. You might want to test it on that to start with and later change it to 86400 (60 * 60 * 24).
You can download it from here:
http://cognitive.com.au/so
you can avoid to leave it open all the time if you set your script to be the startup script, and set that same script to close the file upon completion, then put a task in the scheduler to start fm + the file @ a certain time.
if this script is one script among a more complex application, simply do a separate fm file with a script which will open the main file, execute the mail script then closes the main file, then closes itself, thus avoiding the main app to close when used directly. the cheapest timer over all. the other advantage is that if the app is closed for some reason, the scheduler always works even after a reboot ir a server disconnection.
The idea of running the script when opening the file is good.
To have built-in SMTP emailing you will need v10.
The script that actually does the emailing is in the attached snippet. Create this script first and test it to see that it runs correctly.
You will need to edit the details of who is emailed and your own SMTP email settings.
To make the script run when opening the database:
1. Open the FileMaker database.
2. Choose 'File Options...' from the file menu.
3. Turn on 'Perform script:' check box and specify your emailing script.
As discussed by lesouef above set up Windows Scheduler (unless you are on a Mac) to open your FileMaker database every day.
If the database is going to be opened and closed repeatedly each day then you don't want all the emailing to happen several times so I suggest a field that just hold whether emailed for that event or not which can be part of the IF check before emailing and then after emailing put "Yes" in the field with a 'Set Field' command.
If you want to do the processing on a 'workhorse' system and leave it alone to do it's job you wont need to use the Windows Scheduler and can just run it as in the demo. This may avoid any issues of a portable system trying to email all the time in situation with different SMTP settings or email availability.
made a mistake up there, the GUI for crontab edition is "cronnix"
http://www.versiontracker.
let me know if help is still needed otherwise
Business Accounts
Answer for Membership
by: cogitivePosted on 2009-02-19 at 21:23:55ID: 23689063
The answer may be different depending on the version of FileMaker being used and whether it is on a server.
Can you please provide the FileMaker Pro version you are using and FileMaker Server version if on a server.