filemaker "send email" script alternatively opens emails or saves as drafts
I have a button that calls the "Send Email" script with the "Perform without Dialog" option unchecked. Depending on the record, the email is either saved as a draft or opens for editing (both in Outlook).
I want the emails to open for editing. These are emails that would be sent immediately and going into the drafts folder negates the benefits of the script.
I've looked for discrepancies in the emails or other inconsistencies, but I can't see why this script isn't acting the same way for all records.
Solved! It was a matter of having unneeded spaces and/or carriage returns. I'm using trim and substitute to solve the issue.