Script to auto email .pdf attachment of new records
I need to write a script that upon submission of a record will,
- Send/Save Records As .pdf
- use data from a field as the file name
- create email with file as attachment
- and automatically use SMTP and a set email address to send a copy of the new record without the user having to do anything or seeing any interruption.
I have built out a filemaker solution for Incident reports that need to be forwarded to our Head of Nursing and Head of Security, every time a new report is entered. Can anyone offer any assistance in regards to if this is possible and what the script should look like?