add email send
This commit is contained in:
@@ -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']);
|
wp_redirect($_SERVER['HTTP_REFERER']);
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user