Issues with forminator web hooks
-
Hi,
I am trying to send an email when a web hook for a form submission is triggered (I know I can do it through forminator but I need it done through a webhook for another reason).
Not sure if I am doing it correctly. In functions.php I have added the the following:function my_form_function($module_id) { $to = '[email protected]'; $subject = 'The subject'; $body = 'The email body content'; $headers = array('Content-Type: text/html; charset=UTF-8'); wp_mail( $to, $subject, $body, $headers ); } add_action('forminator_form_before_handle_submit','my_form_function', 10, 232 );
I don’t get any errors but the email never gets sent, tested the function on its own and it does work just not via a form submission. FYI, my form id is 232 and I put the priority to 10, I believe I am setting that right?
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Issues with forminator web hooks’ is closed to new replies.