FORUMS


The Form Tools forums are no longer active, but the old posts have been archived here. Please see the Help page on how to get help / report issues.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Email on submission of form not working
#1
Hi - anyone got any clues on this:

* Test email sends perfectly from admin screen.

* No email is sent when form is submitted (but should be).

* The form is using Paypal so never goes to the 'thank you' page that was configured when the form was originally set up. Would this cause the email not to send?

Thanks for any suggestions
Reply
#2
Bump.

Anybody got any ideas or clues please? Haven't been able to crack this yet.

(Mar 14th, 2010, 2:31 PM)martin_undefined Wrote: Hi - anyone got any clues on this:

* Test email sends perfectly from admin screen.

* No email is sent when form is submitted (but should be).

* The form is using Paypal so never goes to the 'thank you' page that was configured when the form was originally set up. Would this cause the email not to send?

Thanks for any suggestions
Reply
#3
Hey Martin,

Are you using the API for this form, and calling the ft_finalize_submission() function from within the ipn.php script? If so, Houston we have a problem. This is a known bug: that function fails to send emails, when in fact it should.

But even if that's not the case: emails are only ever sent out when the submission gets finalized. So if you have a 10 page form, obviously you wouldn't want it emails sent out on every step of the way. Instead, the email gets sent ONLY on the last step: which is where you (usually) add "finalize" => true to the $params passed to the ft_api_process_page function.

If you're not finalizing the submission, you won't get the emails sent out.

Let me know if this helps at all...

- Ben
Reply
#4
Hi,

Missed that this is a known bug. I am indeed using the ipn.php route. Any workarounds?

Thanks

Martin

(Mar 22nd, 2010, 8:11 PM)Ben Wrote: Hey Martin,

Are you using the API for this form, and calling the ft_finalize_submission() function from within the ipn.php script? If so, Houston we have a problem. This is a known bug: that function fails to send emails, when in fact it should.
Reply
#5
The code to trigger sending of the mail just seems to be missing in the ft_finalize_submission function.

I found this worked (updating version 2.0.0)
global/code/submissions.php line ~852

find the function
function ft_finalize_submission($form_id, $submission_id)

just before
return true;
}

in the function add

ft_send_emails("on_submission", $form_id, $submission_id);



so the function looks like

Code:
function ft_finalize_submission($form_id, $submission_id)
{
  global $g_table_prefix;

  // check the form_id is valid
  if (!ft_check_form_exists($form_id))
    return false;

  $query = "
    UPDATE {$g_table_prefix}form_$form_id
    SET    is_finalized = 'yes'
    WHERE  submission_id = $submission_id
           ";
  $result = mysql_query($query);
  
  ft_send_emails("on_submission", $form_id, $submission_id);

  return true;
}


That works well for me


(Mar 22nd, 2010, 10:14 PM)martin_undefined Wrote: Hi,

Missed that this is a known bug. I am indeed using the ipn.php route. Any workarounds?

Thanks

Martin
Reply
#6
You are doing good work
Reply
#7
I must say that this kind of issue may occur so you don't need to worry about this. As this has happened with me also and i turn off it and reopen. You can get hnd assignment help from us to write educational task easily. By doing this and sending it again, the issue has been resolved.
Reply
#8
I think Emails are best ever sent out whilst the submission gets finalized. So when you have a ten web page shape, manifestly you wouldn't need it emails dispatched out on every step of the manner. Instead, the e-mail gets hnd assignment help.
Reply
#9
Hallå! Om du har problem med din penis, rekommenderar jag webbplatsen https://svensktapotek.net/, på den hittar du snabbt ett bra läkemedel för att öka styrkan, vilket snabbt kommer att bli av med alla problem. Klicka på länken och beställa den just nu!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)