Say you have a submission process that requires two forms. The submission of the 2nd form triggers an email. What do you do if the second form isn't submitted? Say the user forgets or closes the window by accident.
My only solution was to update the DB with a flag from the submission of the 1st form that identifies an email has not been sent. Submission of the 2nd form will trigger an event to send an email and update the DB with a flag that identifies an email has been sent. A cron job will run periodically to check for any flags for unsent emails, gather the information, and send an email.
Is this the best way of dealing with the issue?
Form 1 User submits general data
Message 1 User presented with a choice. User needs to choose to "pass" or "accept". If the user submits the "accept" form (Form 2), an email is sent. If the user submits the "pass" form (Form 2), they are presented with another message with another choice (Form 3). If the user does nothing, the last choice provided is their default choice, but at this point an email still needs to sent.
I hope that's more clear.