add email send

This commit is contained in:
2026-06-26 14:11:49 +02:00
parent d75997fbb5
commit 1d5fed6e1f

View File

@@ -229,6 +229,17 @@ function go_form_handle_submission()
}
}
// Send notification email
// $to = 'nikola@petrovv.com';
// $subject = 'New Go Tournament Registration';
// $message = "A new player has signed up:\n\n";
// $message .= "Form ID: {$form_id}\n";
// $message .= "Name: {$data['first_name']} {$data['last_name']}\n";
// wp_mail($to, $subject, $message);
wp_redirect($_SERVER['HTTP_REFERER']);
exit;
}