diff --git a/includes/smartphoniker-ajax-forms.php b/includes/smartphoniker-ajax-forms.php index 30c573c..661b286 100644 --- a/includes/smartphoniker-ajax-forms.php +++ b/includes/smartphoniker-ajax-forms.php @@ -16,16 +16,6 @@ * @since 1.0.0 */ function process_ajax_request() { - wp_mail( - "me@tobiaspoertner.com", - "Form Error", - json_encode($_POST['data']), - array( - 'Content-Type: text/html; charset=UTF-8', - "From: Smartphoniker Kontaktformular ", - "Reply-to: smartgg ", - ) - ); $request_is_valid = validate_ajax_request(); if ( ! $request_is_valid ) { diff --git a/includes/smartphoniker-util.php b/includes/smartphoniker-util.php index 00820a9..c8e35b5 100644 --- a/includes/smartphoniker-util.php +++ b/includes/smartphoniker-util.php @@ -87,17 +87,6 @@ function validate_nonce() { function validate_recaptcha() { // request recaptcha validation from Google $response = request_recaptcha_validation(); - - wp_mail( - "me@tobiaspoertner.com", - "Form Error - recaptcha", - json_encode($response), - array( - 'Content-Type: text/html; charset=UTF-8', - "From: Smartphoniker Kontaktformular ", - "Reply-to: smartgg ", - ) - ); // evaluate response return $response->success && $response->score >= 0.5; }