It is eassier to use a regular FM-layout to create and edit the email and then use the scriptstep send email with "perform without dialog" checkbox on. Just build in some checks like subject entered, valid emailaddresses etc. and your users can use all of the FM app.
Yes, I had thought of this method but the client is opposed to creating all the new layouts it would require. They have approximately 15 auto emails which get generated when dates are entered in to the different events in the production schedule.
Do I need to create a separate layout for each of these emails. At first glance, I figured that one layout could be used but then the problem could arise where a user was working on more than one of these emails before sending them out.
I found your post interesting because I have a script that sends an email confirmation of hire details of a piece of equipment (with a pdf attached), and after it opens up the email client I am still able to edit the email and return back to Filemaker and continue the script as normal. The email itself stays open and editable until I click "send". I can switch back and forth between them with no troubles.
So it is possible, unless I've misunderstood what you are doing.
I don't think you'll need to create 15 layouts. You just need one layout and everytime you create an email just create a new record. The layout you need to create is just to replace the dialog from which you cannot go back to the rest of the database without cancelling. For the emails you may need to create a new table, i have the impression that you don't have a table for that yet.
I saw a similar post the other day which recomended using the Open URL script step and place in the calculation:
"mailto" & c_Email_Address & ?subject=" & c_Email_Subject & "&body=" & c_EmailBody & "&cc=" & c_Email_CC & "&bcc=" & c_Email_BCC
The c_... are your fields
I have not tried this but the theory is good.
It may also be posible to add attachments have a look at the Microsoft developer network item below for more explanation on the Mailto syntax and attachments.
It looks like &attachement=""C:\filename.txt"" should work the "" double quotes are the key for outlook 2003
I hope this helps
Ah Ha! A separate table and only one layout. I should have thought of that. Thanks for helping me get outside of the box I was thinking in!!