The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
Email on submission of form not working - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5)
+--- Thread: Email on submission of form not working (/showthread.php?tid=569)



Email on submission of form not working - martin_undefined - Mar 14th, 2010

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


RE: Email on submission of form not working - martin_undefined - Mar 21st, 2010

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



RE: Email on submission of form not working - Ben - Mar 22nd, 2010

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


RE: Email on submission of form not working - martin_undefined - Mar 22nd, 2010

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.



RE: Email on submission of form not working - dcw - Apr 9th, 2010

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



RE: Email on submission of form not working - LoganBayldon - Jun 28th, 2020

You are doing good work


RE: Email on submission of form not working - BraydenWilks - Jun 28th, 2020

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.


RE: Email on submission of form not working - mandyangelica - Jul 6th, 2020

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.


RE: Email on submission of form not working - Degni - Jan 15th, 2021

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!