Hi Carpetman,
Cool! No problem, here's how you can trigger it manually.
The emails are "normally" triggered in the ft_finalize_submission() function, called when the submission is finally marked as complete & ready to show up in the interface. But in your case, you can just call the email function manually. Here's some example code:
Hope this helps!
- Ben
Cool! No problem, here's how you can trigger it manually.
The emails are "normally" triggered in the ft_finalize_submission() function, called when the submission is finally marked as complete & ready to show up in the interface. But in your case, you can just call the email function manually. Here's some example code:
PHP Code:
// your insert code here
mysql_query(" ... ");
// get the unique Submission ID that you just inserted
$submission_id = mysql_insert_id();
// now send whatever emails are associated with this event ("on submission") for this form
$form_id = 1; // you'll need to update this for your own form ID
ft_send_emails("on_submission", $form_id, $submission_id);
Hope this helps!

- Ben